[MPlayer-dev-eng] [RFC][PATCH] Replace deprecated get_buffer, buffer_hints, and others

Roberto Togni rxt at rtogni.it
Sat Aug 22 01:29:47 CEST 2015

 this patch removes the use of deprecated get_buffer() function, and
the usage of deprecated fields in AVFrame.

Differently from the previous patch, this one keeps our dr1 structure;
if we then decide to drop it a lot of wrapper code can go out.

Since my code was getting too complex to account for all the corner
cases I decided to just copy the compatibility code from ffmpeg, and
adapt it to out use.

As usual the code can be further cleaned up, but this should be enough
to allow compilation and functionality when the deprecated symbols are

It's tested with some codecs on the default vo (gl) and with -vo x11;
H264 is tested also with vdpau acceleration.

Please test it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd_ffmpeg.c.diff
Type: text/x-patch
Size: 11840 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20150822/9e80a07d/attachment.bin>

More information about the MPlayer-dev-eng mailing list