summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 15:35:18 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 15:35:18 +0000
commit706f148b78bf715aeebab1f97653a67aa4d4b482 (patch)
tree423623ec12f8330815cb1be9351c6458e0c743e7 /libmpcodecs
parent36d0d92f217f8aaf2536a882606ad277b7ce512a (diff)
downloadmpv-706f148b78bf715aeebab1f97653a67aa4d4b482.tar.bz2
mpv-706f148b78bf715aeebab1f97653a67aa4d4b482.tar.xz
Remove several #ifdefs that check for libavcodec features from vd_ffmpeg.
They make no sense since only recent libavcodec versions are supported anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28542 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index a3055ccc1a..e32e415f45 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -50,10 +50,6 @@ typedef struct {
AVRational last_sample_aspect_ratio;
} vd_ffmpeg_ctx;
-//#ifdef CONFIG_LIBPOSTPROC
-//unsigned int lavc_pp=0;
-//#endif
-
#include "m_option.h"
static int get_buffer(AVCodecContext *avctx, AVFrame *pic);
@@ -100,9 +96,7 @@ const 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
{"lowres", &lavc_param_lowres_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"skiploopfilter", &lavc_param_skip_loop_filter_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
{"skipidct", &lavc_param_skip_idct_str, CONF_TYPE_STRING, 0, 0, 0, NULL},
@@ -252,11 +246,7 @@ static int init(sh_video_t *sh){
#if CONFIG_XVMC
-#ifdef CODEC_CAP_HWACCEL
if(lavc_codec->capabilities & CODEC_CAP_HWACCEL){
-#else
- if(lavc_codec->id == CODEC_ID_MPEG2VIDEO_XVMC){
-#endif /* CODEC_CAP_HWACCEL */
mp_msg(MSGT_DECVIDEO, MSGL_INFO, MSGTR_MPCODECS_XVMCAcceleratedCodec);
assert(ctx->do_dr1);//these are must to!
assert(ctx->do_slices); //it is (vo_)ffmpeg bug if this fails
@@ -275,9 +265,7 @@ static int init(sh_video_t *sh){
avctx->reget_buffer= get_buffer;
}
-#ifdef CODEC_FLAG_NOT_TRUNCATED
avctx->flags|= CODEC_FLAG_NOT_TRUNCATED;
-#endif
avctx->flags|= lavc_param_bitexact;
avctx->width = sh->disp_w;
@@ -285,9 +273,7 @@ static int init(sh_video_t *sh){
avctx->workaround_bugs= lavc_param_workaround_bugs;
avctx->error_recognition= 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;
avctx->stream_codec_tag= sh->video.fccHandler;
avctx->idct_algo= lavc_param_idct_algo;