Mercurial > libavcodec.hg
comparison vp3.c @ 8736:f973fff63599 libavcodec
VP3: Prevent stack corruption from an unset custom coding method.
author | alexc |
---|---|
date | Tue, 03 Feb 2009 22:59:47 +0000 |
parents | e9d9d946f213 |
children | f14d50df103f |
comparison
equal
deleted
inserted
replaced
8735:5d7ebbb7e91b | 8736:f973fff63599 |
---|---|
739 /* fetch the mode coding scheme for this frame */ | 739 /* fetch the mode coding scheme for this frame */ |
740 scheme = get_bits(gb, 3); | 740 scheme = get_bits(gb, 3); |
741 | 741 |
742 /* is it a custom coding scheme? */ | 742 /* is it a custom coding scheme? */ |
743 if (scheme == 0) { | 743 if (scheme == 0) { |
744 for (i = 0; i < 8; i++) | |
745 custom_mode_alphabet[i] = MODE_INTER_NO_MV; | |
744 for (i = 0; i < 8; i++) | 746 for (i = 0; i < 8; i++) |
745 custom_mode_alphabet[get_bits(gb, 3)] = i; | 747 custom_mode_alphabet[get_bits(gb, 3)] = i; |
746 } | 748 } |
747 | 749 |
748 /* iterate through all of the macroblocks that contain 1 or more | 750 /* iterate through all of the macroblocks that contain 1 or more |