mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/rka: do not output extra invalid samples in last frame
This commit is contained in:
parent
a94a6617a3
commit
7aa71ab5c0
@ -949,6 +949,10 @@ static int rka_decode_frame(AVCodecContext *avctx, AVFrame *frame,
|
||||
}
|
||||
}
|
||||
|
||||
if (frame->nb_samples < s->frame_samples &&
|
||||
frame->nb_samples > s->last_nb_samples)
|
||||
frame->nb_samples = s->last_nb_samples;
|
||||
|
||||
*got_frame_ptr = 1;
|
||||
|
||||
return avpkt->size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user