changeset 28563:1993dea41720

Reuse the code for the general do_dr1 case to set get_buffer/release_buffer for XvMC.
author reimar
date Sun, 15 Feb 2009 16:57:08 +0000
parents 6fcf3cdf2c0f
children f2f0357b2c30
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 15:42:58 2009 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Feb 15 16:57:08 2009 +0000
@@ -248,11 +248,9 @@
         assert(ctx->do_dr1);//these are must to!
         assert(ctx->do_slices); //it is (vo_)ffmpeg bug if this fails
         avctx->get_format= get_format;//for now only this decoder will use it
-        avctx->get_buffer= get_buffer;
-        avctx->release_buffer= release_buffer;
         avctx->draw_horiz_band = draw_slice;
         avctx->slice_flags=SLICE_FLAG_CODED_ORDER|SLICE_FLAG_ALLOW_FIELD;
-    }else
+    }
 #endif /* CONFIG_XVMC */
     if(ctx->do_dr1){
         avctx->flags|= CODEC_FLAG_EMU_EDGE;