diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-06 14:24:31 -0500 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-11-08 13:57:34 -0500 |
commit | 3ba416408aef99b4d7d92719c0a03dc2c9647025 (patch) | |
tree | e8b3af40f10a929fc9c6c856386221883b42bf0c /avconv.c | |
parent | 00f8ad41c78df71c464e98d2c1171a40f205db78 (diff) | |
download | ffmpeg-3ba416408aef99b4d7d92719c0a03dc2c9647025.tar.gz |
avconv: rescale packet duration to muxer time base when flushing encoders
Fixes Bug 385
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -964,6 +964,8 @@ static void flush_encoders(void) 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); write_frame(os, &pkt, ost); } |