mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-30 03:13:18 +00: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…
Reference in New Issue
Block a user