[Mplayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.21,1.22
Michael Niedermayer
michael at mplayerhq.hu
Sun Jun 9 15:52:16 CEST 2002
Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv3547
Modified Files:
vd_ffmpeg.c
Log Message:
grayscale only decoding support
Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- vd_ffmpeg.c 2 Jun 2002 12:48:55 -0000 1.21
+++ vd_ffmpeg.c 9 Jun 2002 13:52:13 -0000 1.22
@@ -55,12 +55,16 @@
static int lavc_param_workaround_bugs=0;
static int lavc_param_error_resilience=0;
+static int lavc_param_gray=0;
struct config lavc_decode_opts_conf[]={
#if LIBAVCODEC_BUILD >= 4611
{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, 0, 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
{NULL, NULL, 0, 0, 0, 0, NULL}
};
@@ -113,6 +117,9 @@
#if LIBAVCODEC_BUILD >= 4611
avctx->workaround_bugs= lavc_param_workaround_bugs;
avctx->error_resilience= lavc_param_error_resilience;
+#endif
+#if LIBAVCODEC_BUILD >= 4614
+ if(lavc_param_gray) avctx->flags|= CODEC_FLAG_GRAY;
#endif
mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height);
More information about the MPlayer-cvslog
mailing list