mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
ffmpeg: relax version check for AVFrame->duration #2828
This commit is contained in:
parent
544d4fccc3
commit
a924cede7f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user