aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-02-06 19:08:32 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-02-09 21:51:29 -0500
commita75bc764ec89d800fa8d70662f16f89cdec17b49 (patch)
tree074fa5823ac10d6708cc4a0e3f808056afb7aecc /avconv.c
parentd483bb58c318b0a6152709cf28263d72200b98f9 (diff)
downloadffmpeg-a75bc764ec89d800fa8d70662f16f89cdec17b49.tar.gz
avcodec: for audio encoding, set packet dts to packet pts.
There are no audio encoders which do frame reordering.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 57a4c926f3..418e1fde8b 100644
--- a/avconv.c
+++ b/avconv.c
@@ -991,6 +991,8 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost,
if (got_packet) {
if (pkt.pts != AV_NOPTS_VALUE)
pkt.pts = av_rescale_q(pkt.pts, enc->time_base, ost->st->time_base);
+ if (pkt.dts != AV_NOPTS_VALUE)
+ pkt.dts = av_rescale_q(pkt.dts, enc->time_base, ost->st->time_base);
if (pkt.duration > 0)
pkt.duration = av_rescale_q(pkt.duration, enc->time_base, ost->st->time_base);