Mercurial > mplayer.hg
changeset 31129:8639a950e856
Cosmetics: make more compact the code for handle_jpeg(), this also allows
vertical alignment. Improve readability.
author | stefano |
---|---|
date | Wed, 19 May 2010 22:56:41 +0000 |
parents | 100a50819c58 |
children | d1f5069bef25 |
files | libswscale/utils.c |
diffstat | 1 files changed, 5 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/utils.c Wed May 19 22:49:04 2010 +0000 +++ b/libswscale/utils.c Wed May 19 22:56:41 2010 +0000 @@ -761,20 +761,11 @@ static int handle_jpeg(enum PixelFormat *format) { switch (*format) { - case PIX_FMT_YUVJ420P: - *format = PIX_FMT_YUV420P; - return 1; - case PIX_FMT_YUVJ422P: - *format = PIX_FMT_YUV422P; - return 1; - case PIX_FMT_YUVJ444P: - *format = PIX_FMT_YUV444P; - return 1; - case PIX_FMT_YUVJ440P: - *format = PIX_FMT_YUV440P; - return 1; - default: - return 0; + case PIX_FMT_YUVJ420P: *format = PIX_FMT_YUV420P; return 1; + case PIX_FMT_YUVJ422P: *format = PIX_FMT_YUV422P; return 1; + case PIX_FMT_YUVJ444P: *format = PIX_FMT_YUV444P; return 1; + case PIX_FMT_YUVJ440P: *format = PIX_FMT_YUV440P; return 1; + default: return 0; } }