diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-06-05 14:14:58 -0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-06-05 21:56:09 +0200 |
commit | a86928d2abf81ea92e9bf90d3dc5bb71ea7f2457 (patch) | |
tree | 43e24328f19862d25365d46363bffdb9a02d8706 /libavformat/flvdec.c | |
parent | 108b738db1fd86806374874649aab9c79ed3bee0 (diff) | |
download | ffmpeg-a86928d2abf81ea92e9bf90d3dc5bb71ea7f2457.tar.gz |
flvdec: fix lack of duration for some files
Fixes #4579
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index f4447b61ec..940d4dda45 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -847,7 +847,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) int type; meta_pos = avio_tell(s->pb); type = flv_read_metabody(s, next); - if (type == 0 && dts == 0 || type < 0) { + if (type == 0 && dts == 0 || type < 0 || type == TYPE_UNKNOWN) { goto skip; } else if (type == TYPE_ONTEXTDATA) { avpriv_request_sample(s, "OnTextData packet"); |