Commit dbabeccd authored by michael's avatar michael

Simplify h263_get_picture_format().


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21045 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1cfa2b2d
...@@ -97,21 +97,18 @@ static uint8_t static_rl_table_store[5][2][2*MAX_RUN + MAX_LEVEL + 3]; ...@@ -97,21 +97,18 @@ static uint8_t static_rl_table_store[5][2][2*MAX_RUN + MAX_LEVEL + 3];
int h263_get_picture_format(int width, int height) int h263_get_picture_format(int width, int height)
{ {
int format;
if (width == 128 && height == 96) if (width == 128 && height == 96)
format = 1; return 1;
else if (width == 176 && height == 144) else if (width == 176 && height == 144)
format = 2; return 2;
else if (width == 352 && height == 288) else if (width == 352 && height == 288)
format = 3; return 3;
else if (width == 704 && height == 576) else if (width == 704 && height == 576)
format = 4; return 4;
else if (width == 1408 && height == 1152) else if (width == 1408 && height == 1152)
format = 5; return 5;
else else
format = 7; return 7;
return format;
} }
static void show_pict_info(MpegEncContext *s){ static void show_pict_info(MpegEncContext *s){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment