Skip to content

Commit

Permalink
vcap/file: fixed compat
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPulec committed Mar 20, 2024
1 parent 393b67e commit ab18fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video_capture/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ static struct video_frame *process_video_pkt(struct vidcap_state_lavf_decoder *s
video_dst_linesize);
}
out->seq = frame->pts < 0 ? UINT32_MAX : MIN(frame->pts, UINT32_MAX);
#ifdef FF_API_PKT_DURATION
#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(57, 30, 100)
out->duration = frame->duration;
#else
out->duration = frame->pkt_duration;
Expand Down

0 comments on commit ab18fff

Please sign in to comment.