Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -949,6 +949,10 @@ static int rka_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 948 unmodified lines | ||
| 949 | 949 | } |
| 950 | 950 | } |
| 951 | 951 | |
| 952 | + if (frame->nb_samples < s->frame_samples && | |
| 953 | + frame->nb_samples > s->last_nb_samples) | |
| 954 | + frame->nb_samples = s->last_nb_samples; | |
| 955 | + | |
| 952 | 956 | *got_frame_ptr = 1; |
| 953 | 957 | |
| 954 | 958 | return avpkt->size; |