matroskadec: allow RealAudio/Cook/Sipro streams of flavor 0
authorSean McGovern <gseanmcg@gmail.com>
Thu, 2 Nov 2017 00:45:20 +0000 (20:45 -0400)
committerSean McGovern <gseanmcg@gmail.com>
Sun, 4 Feb 2018 17:46:26 +0000 (12:46 -0500)
Regression since 569d18aa9dc989c37bb4d4b968026fe5afa6fff9.

Bug-Id: 1055
Cc: libav-stable@libav.org
(cherry picked from commit fbca6e7d162b9a7105d1059826dfe96616fa803a)
Signed-off-by: Sean McGovern <gseanmcg@gmail.com>
libavformat/matroskadec.c

index 58b2b09..dbf4c47 100644 (file)
@@ -1712,7 +1712,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 ||