You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
wavpack: remove a useless check.
Number of samples in the first block is checked to be strictly positive earlier in wavpack_decode_frame() and number of samples in all the other blocks is checked to be equal to the first one.
This commit is contained in:
@@ -797,11 +797,6 @@ static int wavpack_decode_block(AVCodecContext *avctx, int block_no,
|
|||||||
"a sequence: %d and %d\n", wc->samples, s->samples);
|
"a sequence: %d and %d\n", wc->samples, s->samples);
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!s->samples) {
|
|
||||||
*got_frame_ptr = 0;
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
s->samples = wc->samples;
|
s->samples = wc->samples;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user