History

avcodec/rka: do not output extra invalid samples in last frame

Paul B Mahol committed 3 years ago

Commit 7aa71ab1 parent a94a6611 file · +4 −0Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/rka.c+4−0
@@ -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 *got_frame_ptr = 1;956 *got_frame_ptr = 1;
953 957
954 return avpkt->size;958 return avpkt->size;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t