Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Bœsch <u@pkh.me>2017-03-12 15:08:04 +0300
committerClément Bœsch <u@pkh.me>2017-03-12 15:08:04 +0300
commit993a9a3d72af4f4a07470570bc472a0d385ca78f (patch)
tree761e895d1d4cdb326bfc0b20a089a52847b04f94 /ffmpeg.c
parent807d5dcde9d83dca48f8dfc5c98bbc2be6fdc61c (diff)
parentb0f36a0043d76436cc7ab8ff92ab99c94595d3c0 (diff)
Merge commit 'b0f36a0043d76436cc7ab8ff92ab99c94595d3c0'
* commit 'b0f36a0043d76436cc7ab8ff92ab99c94595d3c0': avconv: stop using setpts for input framerate forced with -r Merged-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index 79c91ffc1e..f9fadbd9f2 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2437,6 +2437,9 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output, int eo
best_effort_timestamp= av_frame_get_best_effort_timestamp(decoded_frame);
+ if (ist->framerate.num)
+ best_effort_timestamp = ist->cfr_next_pts++;
+
if (eof && best_effort_timestamp == AV_NOPTS_VALUE && ist->nb_dts_buffer > 0) {
best_effort_timestamp = ist->dts_buffer[0];