mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/h261dec: Discard whole packet when discarding
(The return value doesn't really matter: For video decoders every return value >= 0 is treated as "consumed all of the input".) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
c995311bcf
commit
b561dafd56
|
@ -637,7 +637,7 @@ static int h261_decode_frame(AVCodecContext *avctx, AVFrame *pict,
|
||||||
if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B) ||
|
if ((avctx->skip_frame >= AVDISCARD_NONREF && s->pict_type == AV_PICTURE_TYPE_B) ||
|
||||||
(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != AV_PICTURE_TYPE_I) ||
|
(avctx->skip_frame >= AVDISCARD_NONKEY && s->pict_type != AV_PICTURE_TYPE_I) ||
|
||||||
avctx->skip_frame >= AVDISCARD_ALL)
|
avctx->skip_frame >= AVDISCARD_ALL)
|
||||||
return get_consumed_bytes(s, buf_size);
|
return buf_size;
|
||||||
|
|
||||||
if (ff_mpv_frame_start(s, avctx) < 0)
|
if (ff_mpv_frame_start(s, avctx) < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue