[FFmpeg-devel] [PATCH] matroskadec: Fix bug when parsing realaudio codec parameters
James Almer
jamrial at gmail.com
Wed Dec 25 00:26:32 CET 2013
flavor can be 0.
This fixes tract ticket #3214
Signed-off-by: James Almer <jamrial at gmail.com>
---
libavformat/matroskadec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 98854b0..e994786 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1803,7 +1803,7 @@ static int matroska_read_header(AVFormatContext *s)
track->audio.sub_packet_h = avio_rb16(&b);
track->audio.frame_size = avio_rb16(&b);
track->audio.sub_packet_size = avio_rb16(&b);
- if (flavor <= 0 || track->audio.coded_framesize <= 0 ||
+ if (flavor < 0 || track->audio.coded_framesize <= 0 ||
track->audio.sub_packet_h <= 0 || track->audio.frame_size <= 0 ||
track->audio.sub_packet_size <= 0)
return AVERROR_INVALIDDATA;
--
1.8.3.2
More information about the ffmpeg-devel
mailing list