diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-10 18:25:51 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-10 18:37:25 +0100 |
commit | d3d4bc4784d911236b232e56e4ae476c484381c8 (patch) | |
tree | 05c3b4dade68a91f9c88ccc1a409c16360fe4959 /ffmpeg.c | |
parent | de0e219a8aba72de201e85385c746cd1c04be1a2 (diff) | |
parent | 3efd71b4d0b4a73ccbbbdc092e6bbd54d92633f4 (diff) | |
download | ffmpeg-d3d4bc4784d911236b232e56e4ae476c484381c8.tar.gz |
Merge commit '3efd71b4d0b4a73ccbbbdc092e6bbd54d92633f4'
* commit '3efd71b4d0b4a73ccbbbdc092e6bbd54d92633f4':
avconv: set packet duration for CFR video streams
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -671,6 +671,11 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost) else ost->error[i] = -1; } + + if (ost->frame_rate.num) { + pkt->duration = av_rescale_q(1, av_inv_q(ost->frame_rate), + ost->st->time_base); + } } if (bsfc) |