Fixes #4579

Signed-off-by: Ganesh Ajjanagadde <gajjanaga...@gmail.com>
---
 libavformat/flvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 07f7b68..cc3b9bb 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -841,7 +841,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");
-- 
2.4.2

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to