summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-02 16:52:13 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-02 16:52:13 +0000
commit418f5aecec0196255c843fc0388865038e8c8a35 (patch)
tree8a8dfedb16b673319b5306f0f162f03c925737b8 /libmpcodecs
parent574eb892ea0e70d88789a6cb84e1fcc0eab1ad5e (diff)
downloadmpv-418f5aecec0196255c843fc0388865038e8c8a35.tar.bz2
mpv-418f5aecec0196255c843fc0388865038e8c8a35.tar.xz
non spec compliant optizations support
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13231 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index fc76404020..7c967ed969 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -108,6 +108,7 @@ static int lavc_param_debug=0;
static int lavc_param_vismv=0;
static int lavc_param_skip_top=0;
static int lavc_param_skip_bottom=0;
+static int lavc_param_fast=0;
m_option_t lavc_decode_opts_conf[]={
{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL},
@@ -120,6 +121,9 @@ m_option_t lavc_decode_opts_conf[]={
{"vismv", &lavc_param_vismv, CONF_TYPE_INT, CONF_RANGE, 0, 9999999, NULL},
{"st", &lavc_param_skip_top, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
{"sb", &lavc_param_skip_bottom, CONF_TYPE_INT, CONF_RANGE, 0, 999, NULL},
+#ifdef CODEC_FLAG2_FAST
+ {"fast", &lavc_param_fast, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG2_FAST, NULL},
+#endif
{NULL, NULL, 0, 0, 0, 0, NULL}
};
@@ -238,6 +242,9 @@ static int init(sh_video_t *sh){
avctx->workaround_bugs= lavc_param_workaround_bugs;
avctx->error_resilience= lavc_param_error_resilience;
if(lavc_param_gray) avctx->flags|= CODEC_FLAG_GRAY;
+#ifdef CODEC_FLAG2_FAST
+ avctx->flags2|= lavc_param_fast;
+#endif
avctx->codec_tag= sh->format;
#if LIBAVCODEC_BUILD >= 4679
avctx->stream_codec_tag= sh->video.fccHandler;