mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-08 15:50:18 +00:00
libvorbisenc: fix afq delay setting
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
7548c80acc
commit
2c34367b4a
@ -362,7 +362,9 @@ static int oggvorbis_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
* libvorbis, so we have to update the AudioFrameQueue counts */
|
* libvorbis, so we have to update the AudioFrameQueue counts */
|
||||||
if (!avctx->delay) {
|
if (!avctx->delay) {
|
||||||
avctx->delay = duration;
|
avctx->delay = duration;
|
||||||
s->afq.remaining_delay += duration;
|
av_assert0(!s->afq.remaining_delay);
|
||||||
|
s->afq.frames->duration += duration;
|
||||||
|
s->afq.frames->pts -= duration;
|
||||||
s->afq.remaining_samples += duration;
|
s->afq.remaining_samples += duration;
|
||||||
}
|
}
|
||||||
ff_af_queue_remove(&s->afq, duration, &avpkt->pts, &avpkt->duration);
|
ff_af_queue_remove(&s->afq, duration, &avpkt->pts, &avpkt->duration);
|
||||||
|
Loading…
Reference in New Issue
Block a user