[FFmpeg-cvslog] lavc/speedhqdec: Obey AVDISCARD_ALL
Tomas Härdin
git at videolan.org
Mon May 13 09:56:14 EEST 2024
ffmpeg | branch: master | Tomas Härdin <git at haerdin.se> | Wed May 8 14:17:57 2024 +0200| [37db0454e4c046d9f85636cf98175cced7a2af98] | committer: Tomas Härdin
lavc/speedhqdec: Obey AVDISCARD_ALL
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=37db0454e4c046d9f85636cf98175cced7a2af98
---
libavcodec/speedhqdec.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/speedhqdec.c b/libavcodec/speedhqdec.c
index e54e25cb25..d6b1fff7a5 100644
--- a/libavcodec/speedhqdec.c
+++ b/libavcodec/speedhqdec.c
@@ -424,6 +424,9 @@ static int speedhq_decode_frame(AVCodecContext *avctx, AVFrame *frame,
return AVERROR_INVALIDDATA;
}
+ if (avctx->skip_frame >= AVDISCARD_ALL)
+ return avpkt->size;
+
compute_quant_matrix(s->quant_matrix, 100 - quality);
second_field_offset = AV_RL24(buf + 1);
More information about the ffmpeg-cvslog
mailing list