[FFmpeg-cvslog] r17130 - trunk/libavcodec/imgconvert.c
gpoirier
subversion
Tue Feb 10 13:38:56 CET 2009
Author: gpoirier
Date: Tue Feb 10 13:38:56 2009
New Revision: 17130
Log:
Add a default (error) for the switch in case of an unsupported PIX_FMT.
Removes warnings about possibly uninitialized variables.
Patch by Patrik Kullman %patrik A yes P nu%
Modified:
trunk/libavcodec/imgconvert.c
Modified: trunk/libavcodec/imgconvert.c
==============================================================================
--- trunk/libavcodec/imgconvert.c Tue Feb 10 12:29:31 2009 (r17129)
+++ trunk/libavcodec/imgconvert.c Tue Feb 10 13:38:56 2009 (r17130)
@@ -473,6 +473,8 @@ int ff_set_systematic_pal(uint32_t pal[2
case PIX_FMT_GRAY8:
r=b=g= i;
break;
+ default:
+ return -1;
}
pal[i] = b + (g<<8) + (r<<16);
}
More information about the ffmpeg-cvslog
mailing list