Skip to content

Commit

Permalink
ffmpeg: relax version check for AVFrame->duration #2828
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 2, 2025
1 parent 544d4fc commit a924ced
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){
#if LIBAVUTIL_VERSION_MAJOR < 59
#if LIBAVUTIL_VERSION_MAJOR < 58
return frame->pkt_duration;
#else
return frame->duration;
Expand Down

0 comments on commit a924ced

Please sign in to comment.