dividuum / info-beamer

The Multimedia Presenter for Lua (for commercial projects, use info-beamer pi instead)
https://info-beamer.com/
Other
227 stars 48 forks source link

Migration to libav10 #19

Closed whizse closed 10 years ago

whizse commented 10 years ago

At the moment info-beamer fails to compile with libav10. r_frame_rate has become avg_frame_rate and avcodec_alloc_frame has been deprecated in favour of av_frame_alloc.

video.c: In function ‘video_open’: video.c:135:41: error: ‘AVStream’ has no member named ‘r_frame_rate’ if ((stream->time_base.den != stream->r_frame_rate.num) || ^ video.c:136:45: error: ‘AVStream’ has no member named ‘r_frame_rate’ (stream->time_base.num != stream->r_frame_rate.den)) { ^ video.c:137:34: error: ‘AVStream’ has no member named ‘r_frame_rate’ video->fps = 1.0 / stream->r_frame_rate.den * stream->r_frame_rate.num; ^ video.c:137:61: error: ‘AVStream’ has no member named ‘r_frame_rate’ video->fps = 1.0 / stream->r_frame_rate.den * stream->r_frame_rate.num; ^ video.c:144:5: warning: ‘avcodec_alloc_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations] video->raw_frame = avcodec_alloc_frame(); ^ video.c:145:5: warning: ‘avcodec_alloc_frame’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:3114) [-Wdeprecated-declarations] video->scaled_frame = avcodec_alloc_frame(); ^ Also see https://wiki.libav.org/Migration/10