pesintta / vdr-plugin-vaapidevice

VDR VAAPIDevice Plug-in
9 stars 12 forks source link

deprecated function #81

Closed 9000h closed 6 years ago

9000h commented 6 years ago
video.c: In function ‘VideoSetPts’:
video.c:359:5: warning: ‘av_frame_get_pkt_duration’ is deprecated [-Wdeprecated-declarations]
     Debug8("video: %d/%d %" PRIx64 " -> %d", video_ctx->framerate.den, video_ctx->framerate.num,
     ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/libavcodec/avcodec.h:38:0,
                 from video.c:52:
/usr/include/x86_64-linux-gnu/libavutil/frame.h:591:9: note: declared here
 int64_t av_frame_get_pkt_duration         (const AVFrame *frame);
         ^~~~~~~~~~~~~~~~~~~~~~~~~

as there is no easy way to replace it could this be usesd to quiet the compile

FF_DISABLE_DEPRECATION_WARNINGS Debug8("video: %d/%d %" PRIx64 " -> %d", video_ctx->fram..... FF_ENABLE_DEPRECATION_WARNINGS

rofafor commented 6 years ago

What's the ffmpeg version you're using?

9000h commented 6 years ago

it's ffmpeg-3.5~git20180113

9000h commented 6 years ago

pragma GCC diagnostic push

pragma GCC diagnostic ignored "-Wdeprecated-declarations"

...

pragma GCC diagnostic pop

or this one?

pesintta commented 6 years ago

Fixed in PR #77