diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-06 19:08:32 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-09 21:51:29 -0500 |
commit | a75bc764ec89d800fa8d70662f16f89cdec17b49 (patch) | |
tree | 074fa5823ac10d6708cc4a0e3f808056afb7aecc /avconv.c | |
parent | d483bb58c318b0a6152709cf28263d72200b98f9 (diff) | |
download | ffmpeg-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |