lavc/speedhqdec: Obey AVDISCARD_ALL

This commit is contained in:
Tomas Härdin 2024-05-08 14:17:57 +02:00
parent 5b32685d77
commit 37db0454e4
1 changed files with 3 additions and 0 deletions

View File

@ -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);