Browse code

avformat/lxfdec: use a parser to parse video frame headers

lxf needs a parser (or would need to set a few fields explicitly).
Fixes Ticket2917

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8349be852be7f68fe0590584fd46c4d5f1c16b3d)

Michael Niedermayer authored on 2013/09/01 07:21:37
Showing 1 changed files
... ...
@@ -258,6 +258,7 @@ static int lxf_read_header(AVFormatContext *s)
258 258
     st->codec->bit_rate   = 1000000 * ((video_params >> 14) & 0xFF);
259 259
     st->codec->codec_tag  = video_params & 0xF;
260 260
     st->codec->codec_id   = ff_codec_get_id(lxf_tags, st->codec->codec_tag);
261
+    st->need_parsing      = AVSTREAM_PARSE_HEADERS;
261 262
 
262 263
     av_log(s, AV_LOG_DEBUG, "record: %x = %i-%02i-%02i\n",
263 264
            record_date, 1900 + (record_date & 0x7F), (record_date >> 7) & 0xF,