diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 13:52:13 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-06-09 13:52:13 +0000 |
commit | f9736da1e569f6e1e583a2f05a1e0c5edd6afe52 (patch) | |
tree | c6eb41d7867afa92dd0d86a2cb1ef0c0dba8c1ef /libmpcodecs | |
parent | 64aef7a44dfeec0ccee3687fe8b23e2f3fbed74c (diff) | |
download | mpv-f9736da1e569f6e1e583a2f05a1e0c5edd6afe52.tar.bz2 mpv-f9736da1e569f6e1e583a2f05a1e0c5edd6afe52.tar.xz |
grayscale only decoding support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6356 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index db0d257d8a..0986b083fe 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -55,12 +55,16 @@ typedef struct { 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} }; @@ -114,6 +118,9 @@ static int init(sh_video_t *sh){ 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); if (sh->format == mmioFOURCC('R', 'V', '1', '3')) |