mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
3d6fac8cee
commit
c7efffcb44
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue