Unified · Split
| @@ -1115,8 +1115,8 @@ static void do_video_out(OutputFile *of, · 1114 unmodified lines | ||
| 1115 | 1115 | (nb_filtergraphs == 0 || !filtergraphs[0]->graph_desc) && |
| 1116 | 1116 | next_picture && |
| 1117 | 1117 | ist && |
| 1118 | − lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) { | |
| 1119 | − duration = lrintf(next_picture->pkt_duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)); | |
| 1118 | + lrintf(next_picture->duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)) > 0) { | |
| 1119 | + duration = lrintf(next_picture->duration * av_q2d(ist->st->time_base) / av_q2d(enc->time_base)); | |
| 1120 | 1120 | } |
| 1121 | 1121 | |
| 1122 | 1122 | if (!next_picture) { |
| @@ -2237,7 +2237,7 @@ static int decode_video(InputStream *ist, AVPacket *pkt, int *got_output, int64_ · 1114 unmodified lines | ||
| 2237 | 2237 | ist->hwaccel_retrieved_pix_fmt = decoded_frame->format; |
| 2238 | 2238 | |
| 2239 | 2239 | best_effort_timestamp= decoded_frame->best_effort_timestamp; |
| 2240 | − *duration_pts = decoded_frame->pkt_duration; | |
| 2240 | + *duration_pts = decoded_frame->duration; | |
| 2241 | 2241 | |
| 2242 | 2242 | if (ist->framerate.num) |
| 2243 | 2243 | best_effort_timestamp = ist->cfr_next_pts++; |