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

Message ID 1509819359-10300-1-git-send-email-gseanmcg@gmail.com
State New
Headers show

Commit Message

Sean McGovern Nov. 4, 2017, 6:15 p.m.
Regression since 569d18aa9dc989c37bb4d4b968026fe5afa6fff9.

Bug-Id: 1055
Cc: libav-stable@libav.org
---
 libavformat/matroskadec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 3953cd3..ab5b737 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 ||