diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-19 22:56:41 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-05-19 22:56:41 +0000 |
commit | b8dbff33bf1b5c3b2c3139cfe5360916ee9f153c (patch) | |
tree | e33201468b4573b1abe740591e7a7402ea05bcef /libswscale | |
parent | 2b65bb45b59389d25661f3b3df45daa721d8abc8 (diff) | |
download | ffmpeg-b8dbff33bf1b5c3b2c3139cfe5360916ee9f153c.tar.gz |
Cosmetics: make more compact the code for handle_jpeg(), this also allows
vertical alignment. Improve readability.
Originally committed as revision 31186 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/utils.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 5dad43bdd9..1755b1499c 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -761,20 +761,11 @@ int sws_getColorspaceDetails(SwsContext *c, int **inv_table, int *srcRange, int 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; } } |