diff options
author | Anton Khirnov <anton@khirnov.net> | 2016-07-15 06:50:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2016-07-22 19:08:12 +0200 |
commit | b0f36a0043d76436cc7ab8ff92ab99c94595d3c0 (patch) | |
tree | 3ec757cccb2461896db85bb27cee91e5a0a1e727 /avconv.c | |
parent | 9064777dbb335ab4809ae09e3fdcc0245f925cdc (diff) |
avconv: stop using setpts for input framerate forced with -r
The setpts filter does not signal to the rest of the filtergraph that
the stream is CFR. Just generate the timestamps manually instead.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1392,6 +1392,8 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output) decoded_frame->pts = guess_correct_pts(&ist->pts_ctx, decoded_frame->pts, decoded_frame->pkt_dts); + if (ist->framerate.num) + decoded_frame->pts = ist->cfr_next_pts++; if (ist->st->sample_aspect_ratio.num) decoded_frame->sample_aspect_ratio = ist->st->sample_aspect_ratio; |