Skip to content

Commit

Permalink
check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 8, 2024
1 parent bed402a commit 441d66a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media/ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ typedef struct ncvisual_details {
#define IMGALLOCALIGN 64

uint64_t ffmpeg_pkt_duration(const AVFrame* frame){
#ifdef FF_API_PKT_DURATION
#if LIBAVUTIL_VERSION_MAJOR < 59
return frame->pkt_duration;
#else
return frame->duration;
Expand Down

0 comments on commit 441d66a

Please sign in to comment.