[FFmpeg-cvslog] r21045 - trunk/libavcodec/h263.c

michael subversion
Thu Jan 7 04:36:46 CET 2010


Author: michael
Date: Thu Jan  7 04:36:46 2010
New Revision: 21045

Log:
Simplify h263_get_picture_format().

Modified:
   trunk/libavcodec/h263.c

Modified: trunk/libavcodec/h263.c
==============================================================================
--- trunk/libavcodec/h263.c	Thu Jan  7 04:34:30 2010	(r21044)
+++ trunk/libavcodec/h263.c	Thu Jan  7 04:36:46 2010	(r21045)
@@ -97,21 +97,18 @@ static uint8_t static_rl_table_store[5][
 
 int h263_get_picture_format(int width, int height)
 {
-    int format;
-
     if (width == 128 && height == 96)
-        format = 1;
+        return 1;
     else if (width == 176 && height == 144)
-        format = 2;
+        return 2;
     else if (width == 352 && height == 288)
-        format = 3;
+        return 3;
     else if (width == 704 && height == 576)
-        format = 4;
+        return 4;
     else if (width == 1408 && height == 1152)
-        format = 5;
+        return 5;
     else
-        format = 7;
-    return format;
+        return 7;
 }
 
 static void show_pict_info(MpegEncContext *s){



More information about the ffmpeg-cvslog mailing list