aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-09-01 00:21:37 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2013-09-01 10:03:40 +0200
commite27fab0e6ee045a0f7e3e77fcbb54c8293a172a6 (patch)
tree310a064677427209375d65dfc244327385e40121
parentf743c4ece8a857f475fe2e4188c26095fdd9a04d (diff)
downloadffmpeg-e27fab0e6ee045a0f7e3e77fcbb54c8293a172a6.tar.gz
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)
-rw-r--r--libavformat/lxfdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
index 90c49749a6..99257397f9 100644
--- a/libavformat/lxfdec.c
+++ b/libavformat/lxfdec.c
@@ -258,6 +258,7 @@ static int lxf_read_header(AVFormatContext *s)
st->codec->bit_rate = 1000000 * ((video_params >> 14) & 0xFF);
st->codec->codec_tag = video_params & 0xF;
st->codec->codec_id = ff_codec_get_id(lxf_tags, st->codec->codec_tag);
+ st->need_parsing = AVSTREAM_PARSE_HEADERS;
av_log(s, AV_LOG_DEBUG, "record: %x = %i-%02i-%02i\n",
record_date, 1900 + (record_date & 0x7F), (record_date >> 7) & 0xF,