From 49e5dcbce5f9e08ec375fd54c413148beb81f1d7 Mon Sep 17 00:00:00 2001 From: Maarten Daniels Date: Mon, 13 Sep 2004 03:27:53 +0000 Subject: H.261 decoder improvements - GOB's can exist of only MBA_STUFFING codes: it crashed before, but it is fixed now - Clearer code - Some extra checks so the decoder is more resilient against errors patch by (Maarten Daniels ) Originally committed as revision 3457 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/h261data.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libavcodec/h261data.h') diff --git a/libavcodec/h261data.h b/libavcodec/h261data.h index 2f6b5c7eec..1e0e26368e 100644 --- a/libavcodec/h261data.h +++ b/libavcodec/h261data.h @@ -5,7 +5,7 @@ #define MB_TYPE_H261_FIL 0x800000 // H.261 VLC table for macroblock addressing -const uint8_t h261_mba_code[34] = { +const uint8_t h261_mba_code[35] = { 1, 3, 2, 3, 2, 3, 2, 7, 6, 11, 10, 9, @@ -15,10 +15,11 @@ const uint8_t h261_mba_code[34] = { 32, 31, 30, 29, 28, 27, 26, 25, 24, - 15 //(MBA stuffing) + 15, //(MBA stuffing) + 1 //(start code) }; -const uint8_t h261_mba_bits[34] = { +const uint8_t h261_mba_bits[35] = { 1, 3, 3, 4, 4, 5, 5, 7, 7, 8, 8, 8, @@ -28,7 +29,8 @@ const uint8_t h261_mba_bits[34] = { 11, 11, 11, 11, 11, 11, 11, 11, 11, - 11 //(MBA stuffing) + 11, //(MBA stuffing) + 16 //(start code) }; //H.261 VLC table for macroblock type -- cgit v1.2.3