summaryrefslogtreecommitdiff
path: root/libavcodec/h261data.h
diff options
context:
space:
mode:
authorMaarten Daniels <maarten.daniels@luc.ac.be>2004-09-13 03:27:53 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-09-13 03:27:53 +0000
commit49e5dcbce5f9e08ec375fd54c413148beb81f1d7 (patch)
tree386ec62fc2d164136e3272bba523d90226f97c42 /libavcodec/h261data.h
parentd92b58073eeb81022ee56e993ce980355a830403 (diff)
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>) Originally committed as revision 3457 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h261data.h')
-rw-r--r--libavcodec/h261data.h10
1 files changed, 6 insertions, 4 deletions
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