gst/ffmpegcolorspace/imgconvert.c: Fixes for warnings (bugs, actually) noticed by...
authorDavid Schleef <ds@schleef.org>
Wed, 19 May 2004 06:47:58 +0000 (06:47 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 19 May 2004 06:47:58 +0000 (06:47 +0000)
Original commit message from CVS:
* gst/ffmpegcolorspace/imgconvert.c: (img_convert): Fixes for
warnings (bugs, actually) noticed by gcc but not forte.

ChangeLog
gst/ffmpegcolorspace/imgconvert.c

index a26a2fc..61db29d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2004-05-18  David Schleef  <ds@schleef.org>
 
+       * gst/ffmpegcolorspace/imgconvert.c: (img_convert): Fixes for
+       warnings (bugs, actually) noticed by gcc but not forte.
+
+2004-05-18  David Schleef  <ds@schleef.org>
+
        * sys/sunaudio/Makefile.am:
        * sys/sunaudio/gstsunaudio.c: New sunaudiosink
 
index be60c2e..4352fba 100644 (file)
@@ -1616,7 +1616,7 @@ img_convert (AVPicture * dst, int dst_pix_fmt,
   static int inited;
   int i, ret, dst_width, dst_height, int_pix_fmt;
   PixFmtInfo *src_pix, *dst_pix;
-  ConvertEntry *ce;
+  convert_func convert;
   AVPicture tmp1, *tmp = &tmp1;
 
   if (src_pix_fmt < 0 || src_pix_fmt >= PIX_FMT_NB ||
@@ -1641,10 +1641,10 @@ img_convert (AVPicture * dst, int dst_pix_fmt,
     return 0;
   }
 
-  ce = convert_table_lookup (src_pix_fmt, dst_pix_fmt);
-  if (ce->convert) {
+  convert = convert_table_lookup (src_pix_fmt, dst_pix_fmt);
+  if (convert) {
     /* specific convertion routine */
-    ce->convert (dst, src, dst_width, dst_height);
+    convert (dst, src, dst_width, dst_height);
     return 0;
   }