diff options
-rw-r--r-- | libavformat/mvdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c index 1a5012e507..ea955d2b11 100644 --- a/libavformat/mvdec.c +++ b/libavformat/mvdec.c @@ -366,6 +366,9 @@ static int mv_read_header(AVFormatContext *avctx) avpriv_request_sample(avctx, "Audio compression (format %i)", v); } + if (bytes_per_sample == 0) + return AVERROR_INVALIDDATA; + if (set_channels(avctx, ast, avio_rb32(pb)) < 0) return AVERROR_INVALIDDATA; |