mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 22:48:49 +00:00
gst/ffmpegcolorspace/imgconvert.c: Fixes for warnings (bugs, actually) noticed by gcc but not forte.
Original commit message from CVS: * gst/ffmpegcolorspace/imgconvert.c: (img_convert): Fixes for warnings (bugs, actually) noticed by gcc but not forte.
This commit is contained in:
parent
7f52a0ce8f
commit
63469508c4
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2004-05-18 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* sys/sunaudio/Makefile.am:
|
* sys/sunaudio/Makefile.am:
|
||||||
|
|
|
@ -1616,7 +1616,7 @@ img_convert (AVPicture * dst, int dst_pix_fmt,
|
||||||
static int inited;
|
static int inited;
|
||||||
int i, ret, dst_width, dst_height, int_pix_fmt;
|
int i, ret, dst_width, dst_height, int_pix_fmt;
|
||||||
PixFmtInfo *src_pix, *dst_pix;
|
PixFmtInfo *src_pix, *dst_pix;
|
||||||
ConvertEntry *ce;
|
convert_func convert;
|
||||||
AVPicture tmp1, *tmp = &tmp1;
|
AVPicture tmp1, *tmp = &tmp1;
|
||||||
|
|
||||||
if (src_pix_fmt < 0 || src_pix_fmt >= PIX_FMT_NB ||
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
ce = convert_table_lookup (src_pix_fmt, dst_pix_fmt);
|
convert = convert_table_lookup (src_pix_fmt, dst_pix_fmt);
|
||||||
if (ce->convert) {
|
if (convert) {
|
||||||
/* specific convertion routine */
|
/* specific convertion routine */
|
||||||
ce->convert (dst, src, dst_width, dst_height);
|
convert (dst, src, dst_width, dst_height);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue