mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
check LIBAVUTIL_VERSION_MAJOR against 59 for pkt_duration
This commit is contained in:
parent
bed402adf9
commit
441d66a063
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user