[FFmpeg-cvslog] r31186 - trunk/libswscale/utils.c

stefano subversion
Thu May 20 00:56:41 CEST 2010


Author: stefano
Date: Thu May 20 00:56:41 2010
New Revision: 31186

Log:
Cosmetics: make more compact the code for handle_jpeg(), this also allows
vertical alignment. Improve readability.

Modified:
   trunk/libswscale/utils.c

Modified: trunk/libswscale/utils.c
==============================================================================
--- trunk/libswscale/utils.c	Thu May 20 00:49:04 2010	(r31185)
+++ trunk/libswscale/utils.c	Thu May 20 00:56:41 2010	(r31186)
@@ -761,20 +761,11 @@ int sws_getColorspaceDetails(SwsContext 
 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;
     }
 }
 



More information about the ffmpeg-cvslog mailing list