[FFmpeg-cvslog] matroskadec: allow RealAudio/Cook/Sipro streams of flavor 0

Sean McGovern git at videolan.org
Sun Nov 12 05:55:25 EET 2017


ffmpeg | branch: master | Sean McGovern <gseanmcg at gmail.com> | Wed Nov  1 20:45:20 2017 -0400| [fbca6e7d162b9a7105d1059826dfe96616fa803a] | committer: Sean McGovern

matroskadec: allow RealAudio/Cook/Sipro streams of flavor 0

Regression since 569d18aa9dc989c37bb4d4b968026fe5afa6fff9.

Bug-Id: 1055
Cc: libav-stable at libav.org

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fbca6e7d162b9a7105d1059826dfe96616fa803a
---

 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 3953cd304e..9c8aea36ff 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -1916,7 +1916,7 @@ static int matroska_parse_tracks(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 ||
+            if (flavor                        < 0 ||
                 track->audio.coded_framesize <= 0 ||
                 track->audio.sub_packet_h    <= 0 ||
                 track->audio.frame_size      <= 0 ||



More information about the ffmpeg-cvslog mailing list