summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-15 00:30:50 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-07-15 00:30:50 +0000
commit9db1a07b9e660d1b2d73702a7dc90439e21b0990 (patch)
tree51344cf2f112014c7f6e206ffc128e61ca591321 /libmpcodecs
parent920f3f2f7e7c31ae9a00e03892225077bcdd9fdd (diff)
downloadmpv-9db1a07b9e660d1b2d73702a7dc90439e21b0990.tar.bz2
mpv-9db1a07b9e660d1b2d73702a7dc90439e21b0990.tar.xz
10l
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6737 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 17311112bc..ce3d264e0d 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -115,9 +115,11 @@ static int init(sh_video_t *sh){
if(vd_use_slices && lavc_codec->capabilities&CODEC_CAP_DRAW_HORIZ_BAND)
ctx->do_slices=1;
+#if LIBAVCODEC_BUILD > 4615
if(lavc_codec->capabilities&CODEC_CAP_DR1)
ctx->do_dr1=1;
-
+#endif
+
ctx->avctx = malloc(sizeof(AVCodecContext));
memset(ctx->avctx, 0, sizeof(AVCodecContext));
avctx = ctx->avctx;