diff options
author | Patrik Kullman <patrik@yes.nu> | 2009-02-10 12:38:56 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2009-02-10 12:38:56 +0000 |
commit | c7efffcb443fe5a2134833f62987b3a999e0701e (patch) | |
tree | 7f0539ebb0daed81f47e8d355061cad4befb972c /libavcodec | |
parent | 3d6fac8cee1a5d4afb0b79894d83d076d4715e19 (diff) | |
download | ffmpeg-c7efffcb443fe5a2134833f62987b3a999e0701e.tar.gz |
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%
Originally committed as revision 17130 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/imgconvert.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 7e52ea384d..abc253e96b 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -473,6 +473,8 @@ int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){ case PIX_FMT_GRAY8: r=b=g= i; break; + default: + return -1; } pal[i] = b + (g<<8) + (r<<16); } |