mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
Merge commit '3efd71b4d0'
* commit '3efd71b4d0':
avconv: set packet duration for CFR video streams
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
This commit is contained in:
commit
d3d4bc4784
10 changed files with 253 additions and 248 deletions
5
ffmpeg.c
5
ffmpeg.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue