summaryrefslogtreecommitdiff
path: root/libavformat/flvdec.c
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-06-05 14:14:58 -0400
committerMichael Niedermayer <michaelni@gmx.at>2015-06-05 21:56:09 +0200
commita86928d2abf81ea92e9bf90d3dc5bb71ea7f2457 (patch)
tree43e24328f19862d25365d46363bffdb9a02d8706 /libavformat/flvdec.c
parent108b738db1fd86806374874649aab9c79ed3bee0 (diff)
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.c2
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");