[FFmpeg-cvslog] flvdec: fix lack of duration for some files
Ganesh Ajjanagadde
git at videolan.org
Fri Jun 5 21:56:54 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Fri Jun 5 14:14:58 2015 -0400| [a86928d2abf81ea92e9bf90d3dc5bb71ea7f2457] | committer: Michael Niedermayer
flvdec: fix lack of duration for some files
Fixes #4579
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a86928d2abf81ea92e9bf90d3dc5bb71ea7f2457
---
libavformat/flvdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index f4447b6..940d4dd 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");
More information about the ffmpeg-cvslog
mailing list