diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-06-16 11:35:38 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-06-19 01:36:23 +0200 |
commit | 0b2ecf8224cf882033737541cf3bd615dd414625 (patch) | |
tree | d9c6aaf9f68baab5be6c9a0ac73ab32796d670df | |
parent | b583ccc3dbc9d29a5e50b9394ec3eea7237a520a (diff) | |
download | ffmpeg-0b2ecf8224cf882033737541cf3bd615dd414625.tar.gz |
lavc/imgconvert: remove pointless switch block from avpicture_fill()
-rw-r--r-- | libavcodec/imgconvert.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c index 3111418e26..495a1d07f7 100644 --- a/libavcodec/imgconvert.c +++ b/libavcodec/imgconvert.c @@ -334,16 +334,6 @@ int avpicture_layout(const AVPicture* src, enum PixelFormat pix_fmt, int width, } } - switch (pix_fmt) { - case PIX_FMT_RGB8: - case PIX_FMT_BGR8: - case PIX_FMT_RGB4_BYTE: - case PIX_FMT_BGR4_BYTE: - case PIX_FMT_GRAY8: - // do not include palette for these pseudo-paletted formats - return size; - } - if (desc->flags & PIX_FMT_PAL) { uint32_t *d32 = (unsigned char *)(((size_t)dest + 3) & ~3); for (i = 0; i<256; i++) |