[MPlayer-cvslog] r24273 - trunk/libmpcodecs/vd_ffmpeg.c

diego subversion at mplayerhq.hu
Tue Aug 28 19:36:04 CEST 2007


Author: diego
Date: Tue Aug 28 19:36:04 2007
New Revision: 24273

Log:
warning fix:
vd_ffmpeg.c: At top level:
vd_ffmpeg.c:915: warning: 'get_format' defined but not used


Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	(original)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Tue Aug 28 19:36:04 2007
@@ -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
     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;



More information about the MPlayer-cvslog mailing list