forked from FFmpeg/FFmpeg
lavc/speedhqdec: Obey AVDISCARD_ALL
This commit is contained in:
parent
5b32685d77
commit
37db0454e4
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue