changeset 10782:7061be6d8e96 libavcodec

Simplify h263_get_picture_format().
author michael
date Thu, 07 Jan 2010 03:36:46 +0000
parents 89a464c5fad5
children 610b00f28aef
files h263.c
diffstat 1 files changed, 6 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/h263.c	Thu Jan 07 03:34:30 2010 +0000
+++ b/h263.c	Thu Jan 07 03:36:46 2010 +0000
@@ -97,21 +97,18 @@
 
 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){