mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/utils: check skip_samples signedness
Fixes Ticket5528 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
77d4dfbec6
commit
153ab83bd3
|
@ -2346,7 +2346,7 @@ int attribute_align_arg avcodec_decode_audio4(AVCodecContext *avctx,
|
||||||
skip_reason = AV_RL8(side + 8);
|
skip_reason = AV_RL8(side + 8);
|
||||||
discard_reason = AV_RL8(side + 9);
|
discard_reason = AV_RL8(side + 9);
|
||||||
}
|
}
|
||||||
if (avctx->internal->skip_samples && *got_frame_ptr &&
|
if (avctx->internal->skip_samples > 0 && *got_frame_ptr &&
|
||||||
!(avctx->flags2 & AV_CODEC_FLAG2_SKIP_MANUAL)) {
|
!(avctx->flags2 & AV_CODEC_FLAG2_SKIP_MANUAL)) {
|
||||||
if(frame->nb_samples <= avctx->internal->skip_samples){
|
if(frame->nb_samples <= avctx->internal->skip_samples){
|
||||||
*got_frame_ptr = 0;
|
*got_frame_ptr = 0;
|
||||||
|
|
Loading…
Reference in New Issue