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>
Mon, 6 Nov 2017 22:30:05 +0000 (17:30 -0500)
Regression since 569d18aa9dc989c37bb4d4b968026fe5afa6fff9.

Bug-Id: 1055
Cc: libav-stable@libav.org
libavformat/matroskadec.c

index 3953cd3..9c8aea3 100644 (file)
@@ -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 ||