diff libmpcodecs/vd_ffmpeg.c @ 7564:24165f770c0d

idct algo selection support
author michael
date Sun, 29 Sep 2002 23:21:57 +0000
parents 0df2e3079aa4
children 30e1c1f77737
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Sep 29 22:57:54 2002 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Sep 29 23:21:57 2002 +0000
@@ -60,15 +60,19 @@
 static int lavc_param_error_resilience=-1;
 static int lavc_param_gray=0;
 static int lavc_param_vstats=0;
+static int lavc_param_idct_algo=0;
 
 struct config lavc_decode_opts_conf[]={
 #if LIBAVCODEC_BUILD >= 4611
-	{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},
+	{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 99, NULL},
 	{"ver", &lavc_param_error_resilience, CONF_TYPE_INT, CONF_RANGE, -1, 99, NULL},
 #endif
 #if LIBAVCODEC_BUILD >= 4614
 	{"gray", &lavc_param_gray, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_PART, NULL},
 #endif
+#if LIBAVCODEC_BUILD >= 4629
+	{"idct", &lavc_param_idct_algo, CONF_TYPE_INT, CONF_RANGE, 0, 99, NULL},
+#endif
 	{"vstats", &lavc_param_vstats, CONF_TYPE_FLAG, 0, 0, 1, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
@@ -163,6 +167,9 @@
 #if LIBAVCODEC_BUILD >= 4628
     avctx->fourcc= sh->format;
 #endif
+#if LIBAVCODEC_BUILD >= 4629
+    avctx->idct_algo= lavc_param_idct_algo;
+#endif
     
     mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height);
     if (sh->format == mmioFOURCC('R', 'V', '1', '3'))