You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
afq: update remaining samples variable.
Fixes Ticket1785 (opusenc used this variable) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -95,6 +95,7 @@ void ff_af_queue_remove(AudioFrameQueue *afq, int nb_samples, int64_t *pts,
|
||||
if(afq->frames[i].pts != AV_NOPTS_VALUE)
|
||||
afq->frames[i].pts += n;
|
||||
}
|
||||
afq->remaining_samples -= removed_samples;
|
||||
i -= i && afq->frames[i-1].duration;
|
||||
memmove(afq->frames, afq->frames + i, sizeof(*afq->frames) * (afq->frame_count - i));
|
||||
afq->frame_count -= i;
|
||||
|
Reference in New Issue
Block a user