summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-26 12:54:00 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-09-26 12:54:00 +0000
commit7c2eafd04a08be30e58abfeb6a7e442723ec6fbb (patch)
tree1f832c7f286d32ba9bee445714b8369c4d7806d8 /libmpcodecs
parentf56dc998c4e77383946fbf84a956beeb755ee1bd (diff)
downloadmpv-7c2eafd04a08be30e58abfeb6a7e442723ec6fbb.tar.bz2
mpv-7c2eafd04a08be30e58abfeb6a7e442723ec6fbb.tar.xz
low resolution decoding
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13474 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index 3b12ef1d42..1b4fb497d3 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -104,6 +104,7 @@ 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;
+static int lavc_param_lowres=0;
m_option_t lavc_decode_opts_conf[]={
{"bug", &lavc_param_workaround_bugs, CONF_TYPE_INT, CONF_RANGE, -1, 999999, NULL},
@@ -119,6 +120,7 @@ m_option_t lavc_decode_opts_conf[]={
#ifdef CODEC_FLAG2_FAST
{"fast", &lavc_param_fast, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG2_FAST, NULL},
#endif
+ {"lowres", &lavc_param_lowres, CONF_TYPE_INT, CONF_RANGE, 0, 16, NULL},
{NULL, NULL, 0, 0, 0, 0, NULL}
};
@@ -256,6 +258,9 @@ static int init(sh_video_t *sh){
avctx->skip_top = lavc_param_skip_top;
avctx->skip_bottom= lavc_param_skip_bottom;
#endif
+#if LIBAVCODEC_BUILD >= 4722
+ avctx->lowres= lavc_param_lowres;
+#endif
mp_dbg(MSGT_DECVIDEO,MSGL_DBG2,"libavcodec.size: %d x %d\n",avctx->width,avctx->height);
/* AVRn stores huffman table in AVI header */
/* Pegasus MJPEG stores it also in AVI header, but it uses the common