diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 16:57:08 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-15 16:57:08 +0000 |
commit | 14b1991a42855d5c8c9faf7affb11279040c1c07 (patch) | |
tree | 97c818de18c794b6359ddec4de930546e6cae2e8 | |
parent | 08898f0908b48bcf95234995edc637abb67649a7 (diff) | |
download | mpv-14b1991a42855d5c8c9faf7affb11279040c1c07.tar.bz2 mpv-14b1991a42855d5c8c9faf7affb11279040c1c07.tar.xz |
Reuse the code for the general do_dr1 case to set get_buffer/release_buffer for XvMC.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28598 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index 41976b8dcd..7dbe419547 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -248,11 +248,9 @@ static int init(sh_video_t *sh){ 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; |