aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/matroskadec.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-28 21:51:26 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2017-02-28 21:51:26 +0100
commitb8a7dcbde2e1ed99bf07a83b1ddf47d7895360ad (patch)
tree98ae75a0f404dae5c339fee7d46fbfab8b7127ca /libavformat/matroskadec.c
parent7f62368bacdbf6fdc769876f5e4ad5a18afb46ef (diff)
downloadffmpeg-b8a7dcbde2e1ed99bf07a83b1ddf47d7895360ad.tar.gz
lavf/matroskadec: Fix demuxing sipr.
Regression since 2c8d876d
Diffstat (limited to 'libavformat/matroskadec.c')
-rw-r--r--libavformat/matroskadec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 7223e94b55..11265fb229 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -2289,7 +2289,7 @@ static int matroska_parse_tracks(AVFormatContext *s)
track->audio.coded_framesize <= 0 ||
track->audio.sub_packet_h <= 0 ||
track->audio.frame_size <= 0 ||
- track->audio.sub_packet_size <= 0)
+ track->audio.sub_packet_size <= 0 && codec_id != AV_CODEC_ID_SIPR)
return AVERROR_INVALIDDATA;
track->audio.buf = av_malloc_array(track->audio.sub_packet_h,
track->audio.frame_size);