aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-07-24 05:17:26 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-07-27 14:44:07 +0100
commita67b67944aa9e6e794934d15f9fd9a9cf7173e09 (patch)
treea9fdb42f3216626b87efa13717b080e7de0d2b1c /libavcodec
parent60a21b3d81c1a11cf5a08950eadd4e84ca2e597c (diff)
downloadffmpeg-a67b67944aa9e6e794934d15f9fd9a9cf7173e09.tar.gz
ac3enc_template: Use the correct context field
For audio encoders, delay has no effect, use the appropriate one, initial_padding (see 2df0c32).
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/ac3enc_template.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 79b4946b65..8febf858ef 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -450,7 +450,7 @@ int AC3_NAME(encode_frame)(AVCodecContext *avctx, AVPacket *avpkt,
ff_ac3_output_frame(s, avpkt->data);
if (frame->pts != AV_NOPTS_VALUE)
- avpkt->pts = frame->pts - ff_samples_to_time_base(avctx, avctx->delay);
+ avpkt->pts = frame->pts - ff_samples_to_time_base(avctx, avctx->initial_padding);
*got_packet_ptr = 1;
return 0;