Mercurial > libavcodec.hg
diff h261data.h @ 2225:35fc37209ea0 libavcodec
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 <maarten dot daniels at student dot luc dot ac dot be>)
author | michael |
---|---|
date | Mon, 13 Sep 2004 03:27:53 +0000 |
parents | b6f2add2511e |
children | ada3891b859d |
line wrap: on
line diff
--- a/h261data.h Sun Sep 12 23:09:54 2004 +0000 +++ b/h261data.h Mon Sep 13 03:27:53 2004 +0000 @@ -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 @@ 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 @@ 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