h264_parser: Initialize the h264dsp context in the parser as well
authorBen Avison <bavison@riscosopen.org>
Mon, 5 Aug 2013 12:12:46 +0000 (13:12 +0100)
committerMartin Storsjö <martin@martin.st>
Thu, 8 Aug 2013 09:08:28 +0000 (12:08 +0300)
commit7a82022ee2f9b1fad991ace0936901e7419444be
treecb9565b70778effc9bfcc6972046f0b9fd880515
parent3e5898782dce60334ab294821ca00b19c648cf66
h264_parser: Initialize the h264dsp context in the parser as well

Each AVStream struct for an H.264 elementary stream actually has two
copies of the H264DSPContext struct (and in fact all the other members
of H264Context as well):

((H264Context *) ((AVStream *)st)->codec->priv_data)->h264dsp
((H264Context *) ((AVStream *)st)->parser->priv_data)->h264dsp

but only the first of these was actually being initialised. This
prevented the addition of platform-specific implementations of
parser-related functions.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavcodec/h264_parser.c