Mercurial > libavcodec.hg
changeset 1512:e9f83c2323bf libavcodec
recommit of
VOL != 0x120 support
author | michael |
---|---|
date | Sat, 11 Oct 2003 08:27:07 +0000 |
parents | 587258262aa5 |
children | 67069cb78a39 |
files | h263.c |
diffstat | 1 files changed, 7 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Sat Oct 11 08:25:23 2003 +0000 +++ b/h263.c Sat Oct 11 08:27:07 2003 +0000 @@ -5164,21 +5164,18 @@ printf(" at %d\n", get_bits_count(gb)); } - switch(startcode){ - case 0x120: + if(startcode >= 0x120 && startcode <= 0x12F){ if(decode_vol_header(s, gb) < 0) return -1; - break; - case USER_DATA_STARTCODE: + } + else if(startcode == USER_DATA_STARTCODE){ decode_user_data(s, gb); - break; - case GOP_STARTCODE: + } + else if(startcode == GOP_STARTCODE){ mpeg4_decode_gop_header(s, gb); - break; - case VOP_STARTCODE: + } + else if(startcode == VOP_STARTCODE){ return decode_vop_header(s, gb); - default: - break; } align_get_bits(gb);