Commit c7efffcb authored by Patrik Kullman's avatar Patrik Kullman Committed by Guillaume Poirier

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
parent 3d6fac8c
...@@ -473,6 +473,8 @@ int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){ ...@@ -473,6 +473,8 @@ int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){
case PIX_FMT_GRAY8: case PIX_FMT_GRAY8:
r=b=g= i; r=b=g= i;
break; break;
default:
return -1;
} }
pal[i] = b + (g<<8) + (r<<16); pal[i] = b + (g<<8) + (r<<16);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment