Mercurial > mplayer.hg
changeset 24253:e0ed786a7fb9
warning fix:
vd_ffmpeg.c: At top level:
vd_ffmpeg.c:915: warning: 'get_format' defined but not used
author | diego |
---|---|
date | Tue, 28 Aug 2007 17:36:04 +0000 |
parents | 18d1e928771b |
children | 575d7b1fdf82 |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Tue Aug 28 17:11:49 2007 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Aug 28 17:36:04 2007 +0000 @@ -61,10 +61,10 @@ 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 @@ 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 @@ 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;