From a8e69707f71f334daa4cfa461d88db9bc8e7fc7c Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 11 Dec 2012 18:27:34 +0100 Subject: 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 --- Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index ff42ffe42c..b731b84d80 100644 --- a/Makefile +++ b/Makefile @@ -229,6 +229,7 @@ SOURCES = talloc.c \ video/mp_image.c \ video/sws_utils.c \ video/decode/dec_video.c \ + video/decode/lavc_dr1.c \ video/decode/vd.c \ video/decode/vd_lavc.c \ video/filter/vf.c \ -- cgit v1.2.3