Module: libav
Branch: release/11
Commit: 0eab1f64e7c647b650dcc8ae56cda9e78c83937e

Author:    Sean McGovern <gsean...@gmail.com>
Committer: Sean McGovern <gsean...@gmail.com>
Date:      Wed Nov  1 20:45:20 2017 -0400

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

Regression since 569d18aa9dc989c37bb4d4b968026fe5afa6fff9.

Bug-Id: 1055
Cc: libav-sta...@libav.org
(cherry picked from commit fbca6e7d162b9a7105d1059826dfe96616fa803a)
Signed-off-by: Sean McGovern <gsean...@gmail.com>

---

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

diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 58b2b09..dbf4c47 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -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 ||

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to