Commit b27e2b6e authored by Michael Niedermayer's avatar Michael Niedermayer

afq: update remaining samples variable.

Fixes Ticket1785 (opusenc used this variable)
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b02493e4
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment