summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-28 17:36:04 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-28 17:36:04 +0000
commit89855e10223511835efe930193f4d527dcd1f01f (patch)
treed1d173c2bf7fdd0b2495a2c296f0adaa620a4cc9 /libmpcodecs
parente027efe578e533aa918b6b8f35880cbace010010 (diff)
downloadmpv-89855e10223511835efe930193f4d527dcd1f01f.tar.bz2
mpv-89855e10223511835efe930193f4d527dcd1f01f.tar.xz
warning fix:
vd_ffmpeg.c: At top level: vd_ffmpeg.c:915: warning: 'get_format' defined but not used git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24273 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_ffmpeg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c
index baa008a067..d619dbe566 100644
--- a/libmpcodecs/vd_ffmpeg.c
+++ b/libmpcodecs/vd_ffmpeg.c
@@ -61,10 +61,10 @@ typedef struct {
static int get_buffer(AVCodecContext *avctx, AVFrame *pic);
static void release_buffer(AVCodecContext *avctx, AVFrame *pic);
-static enum PixelFormat get_format(struct AVCodecContext * avctx,
- const enum PixelFormat * pix_fmt);
#ifdef HAVE_XVMC
+static enum PixelFormat get_format(struct AVCodecContext * avctx,
+ const enum PixelFormat * pix_fmt);
static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic);
static void mc_release_buffer(AVCodecContext *avctx, AVFrame *pic);
static void mc_render_slice(struct AVCodecContext *s,
@@ -911,6 +911,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){
return mpi;
}
+#ifdef HAVE_XVMC
static enum PixelFormat get_format(struct AVCodecContext * avctx,
const enum PixelFormat * fmt){
sh_video_t * sh = avctx->opaque;
@@ -937,7 +938,6 @@ int i;
return fmt[0];
}
-#ifdef HAVE_XVMC
static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic){
sh_video_t * sh = avctx->opaque;
vd_ffmpeg_ctx *ctx = sh->context;