aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2012-03-01 13:02:49 -0500
committerJustin Ruggles <justin.ruggles@gmail.com>2012-03-20 14:12:54 -0400
commit9b9fc9ba321fe20ed244aacaf9de6e88f2d5386f (patch)
treedd7ccdf76fc762edfcdedce1343ceed1a0f6e549 /avconv.c
parenta1977e0103d23212b842e8398baaf0269891d9e5 (diff)
downloadffmpeg-9b9fc9ba321fe20ed244aacaf9de6e88f2d5386f.tar.gz
avconv: pass input stream timestamps to audio encoders
5 FATE test references updated due to using demuxer-generated timestamps that are either not sample-accurate or are slightly off in the input file.
Diffstat (limited to 'avconv.c')
-rw-r--r--avconv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index 4027edbd0a..affb87742e 100644
--- a/avconv.c
+++ b/avconv.c
@@ -979,6 +979,7 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost,
if (!check_recording_time(ost))
return 0;
+ frame->pts = ost->sync_opts;
ost->sync_opts += frame->nb_samples;
}