diff options
author | Anton Khirnov <anton@khirnov.net> | 2013-05-26 12:38:54 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-05-28 10:03:13 +0400 |
commit | 0f3a0b24dd6f595feaa4526e52ffa7d05c3d7840 (patch) | |
tree | 3d4c172266f56e58f1dcb9624815b60e1bcf1726 /libavcodec/wavpack.c | |
parent | 474fb0c9d9c626a1294f10f18c1a384c454baa0a (diff) |
wavpack: add an error message to a failure.
Diffstat (limited to 'libavcodec/wavpack.c')
-rw-r--r-- | libavcodec/wavpack.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/wavpack.c b/libavcodec/wavpack.c index 81b310f297..fa3682b6f5 100644 --- a/libavcodec/wavpack.c +++ b/libavcodec/wavpack.c @@ -792,8 +792,11 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no, if (!wc->mkv_mode) { s->samples = bytestream2_get_le32(&gb); - if (s->samples != wc->samples) + if (s->samples != wc->samples) { + av_log(avctx, AV_LOG_ERROR, "Mismatching number of samples in " + "a sequence: %d and %d\n", wc->samples, s->samples); return AVERROR_INVALIDDATA; + } if (!s->samples) { *got_frame_ptr = 0; |