We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6320243 commit 8ec4c89Copy full SHA for 8ec4c89
src/video_capture/file.c
@@ -433,7 +433,7 @@ static struct video_frame *process_video_pkt(struct vidcap_state_lavf_decoder *s
433
video_dst_linesize);
434
}
435
out->seq = frame->pts < 0 ? UINT32_MAX : MIN(frame->pts, UINT32_MAX);
436
-#ifdef FF_API_PKT_DURATION
+#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 30, 100)
437
out->duration = frame->duration;
438
#else
439
out->duration = frame->pkt_duration;
0 commit comments