diff options
author | wm4 <wm4@nowhere> | 2012-12-11 18:27:34 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 17:39:32 +0100 |
commit | a8e69707f71f334daa4cfa461d88db9bc8e7fc7c (patch) | |
tree | c01b3b8f5cd4a8679f0948e4dca2e519c8e7665b /DOCS/tech-overview.txt | |
parent | 58d196c07e4faae0e9e7c03c64029c5c36e03c9a (diff) | |
download | mpv-a8e69707f71f334daa4cfa461d88db9bc8e7fc7c.tar.bz2 mpv-a8e69707f71f334daa4cfa461d88db9bc8e7fc7c.tar.xz |
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] http://lists.libav.org/pipermail/libav-devel/2012-December/039781.html
Diffstat (limited to 'DOCS/tech-overview.txt')
0 files changed, 0 insertions, 0 deletions