diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-10-11 08:27:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-10-11 08:27:07 +0000 |
commit | 11417deff95445a48a5696dc73823e906c62df47 (patch) | |
tree | 807f988dec6bb41729e3a95ef447c58dfab86a60 /libavcodec | |
parent | 3bbd2123d63be15678b5d8b0409e186f3f47d978 (diff) | |
download | ffmpeg-11417deff95445a48a5696dc73823e906c62df47.tar.gz |
recommit of
VOL != 0x120 support
Originally committed as revision 2355 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h263.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c index ec6aaffa21..06b70d07fc 100644 --- a/libavcodec/h263.c +++ b/libavcodec/h263.c @@ -5164,21 +5164,18 @@ int ff_mpeg4_decode_picture_header(MpegEncContext * s, GetBitContext *gb) 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); |