Browse Source

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
tags/v0.5
Patrik Kullman Guillaume Poirier 17 years ago
parent
commit
c7efffcb44
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/imgconvert.c

+ 2
- 0
libavcodec/imgconvert.c 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);
}


Loading…
Cancel
Save