mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
wavpack: add an error message to a failure.
This commit is contained in:
parent
474fb0c9d9
commit
0f3a0b24dd
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user