Skip to content

Commit 8ec4c89

Browse files
committed
vcap/file: fixed compat
1 parent 6320243 commit 8ec4c89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/video_capture/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static struct video_frame *process_video_pkt(struct vidcap_state_lavf_decoder *s
433433
video_dst_linesize);
434434
}
435435
out->seq = frame->pts < 0 ? UINT32_MAX : MIN(frame->pts, UINT32_MAX);
436-
#ifdef FF_API_PKT_DURATION
436+
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 30, 100)
437437
out->duration = frame->duration;
438438
#else
439439
out->duration = frame->pkt_duration;

0 commit comments

Comments
 (0)