mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +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>
|
||||
|
||||
* sys/sunaudio/Makefile.am:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue