diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 3953cd304e2a5693910a9f2f1bf3fc00f7c0934c..9c8aea36ff589d34bc35fdeebb09718fd219aad5 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 ||