summaryrefslogtreecommitdiff
path: root/libavcodec/audio_frame_queue.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/audio_frame_queue.c')
-rw-r--r--libavcodec/audio_frame_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/audio_frame_queue.c b/libavcodec/audio_frame_queue.c
index 0a8b25c6e3..82c16a11a3 100644
--- a/libavcodec/audio_frame_queue.c
+++ b/libavcodec/audio_frame_queue.c
@@ -29,8 +29,8 @@ av_cold void ff_af_queue_init(AVCodecContext *avctx, AudioFrameQueue *afq)
{
afq->avctx = avctx;
afq->next_pts = AV_NOPTS_VALUE;
- afq->remaining_delay = avctx->delay;
- afq->remaining_samples = avctx->delay;
+ afq->remaining_delay = avctx->initial_padding;
+ afq->remaining_samples = avctx->initial_padding;
afq->frame_queue = NULL;
}