diff options
author | Anton Khirnov <anton@khirnov.net> | 2022-07-11 10:31:47 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2022-07-19 12:27:18 +0200 |
commit | de3a135e0f3e5d2a35968ed32ae3f8a3b2852cee (patch) | |
tree | debc31641c8439bceccba98b2a0bfd91f4eaf44d /fftools | |
parent | ccb94ec5cf020cdbb37171396090f5bfbe8e7e37 (diff) |
ffmpeg: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'fftools')
-rw-r--r-- | fftools/ffmpeg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c index a69364c0d4..ed3075f6e6 100644 --- a/fftools/ffmpeg.c +++ b/fftools/ffmpeg.c @@ -1115,8 +1115,8 @@ static void do_video_out(OutputFile *of, (nb_filtergraphs == 0 || !filtergraphs[0]->graph_desc) && next_picture && ist && - lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) { - duration = lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)); + lrintf(next_picture->duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) { + duration = lrintf(next_picture->duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)); } if (!next_picture) { @@ -2237,7 +2237,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_ ist->hwaccel_retrieved_pix_fmt = decoded_frame->format; best_effort_timestamp= decoded_frame->best_effort_timestamp; - *duration_pts = decoded_frame->pkt_duration; + *duration_pts = decoded_frame->duration; if (ist->framerate.num) best_effort_timestamp = ist->cfr_next_pts++; |