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
This commit is contained in:
Patrik Kullman 2009-02-10 12:38:56 +00:00 committed by Guillaume Poirier
parent 3d6fac8cee
commit c7efffcb44
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}