path: root/video/mp_image.h
diff options
authorwm4 <wm4@nowhere>2012-12-11 18:27:34 +0100
committerwm4 <wm4@nowhere>2013-01-13 17:39:32 +0100
commita8e69707f71f334daa4cfa461d88db9bc8e7fc7c (patch)
treec01b3b8f5cd4a8679f0948e4dca2e519c8e7665b /video/mp_image.h
parent58d196c07e4faae0e9e7c03c64029c5c36e03c9a (diff)
vd_lavc: add DR1 support
Replace libavcodec's native buffer allocation with code taken from ffplay/ffmpeg's libavfilter support. The code in lavc_dr1.c is directly copied from cmdutils.c. Note that this is quite arcane code, which contains some workarounds for decoder bugs and the like. This is not really a maintainance burden, since fixes from ffmpeg can be directly applied to the code in lavc_dr1.c. It's unknown why libavcodec doesn't provide such a function directly. avcodec_default_get_buffer() can't be reused for various reasons. There's some hope that the work known as The Evil Plan [1] will make custom get_buffer implementations unneeded. The DR1 support as of this commit does nothing. A future commit will use it to implement ref-counting for mp_image (similar to how AVFrame will be ref-counted with The Evil Plan.) [1]
Diffstat (limited to 'video/mp_image.h')
0 files changed, 0 insertions, 0 deletions