This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavc/imgconvert: remove pointless switch block from avpicture_fill()
tags/n1.0
Stefano Sabatini
13 years ago
parent
b583ccc3db
commit
0b2ecf8224
1 changed files
with
0 additions
and
10 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-10
libavcodec/imgconvert.c
+ 0
- 10
libavcodec/imgconvert.c
View File
@@ -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++)
Write
Preview
Loading…
Cancel
Save