Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-08 16:43:01 +0400
committerMichael Niedermayer <michaelni@gmx.at>2011-12-08 21:31:32 +0400
commit40d62960951010f7ff004d2c2bb1a70e5ea24d1e (patch)
treec5e9cce105e2c360571e4ad7d34369be02c83631 /libavcodec/escape130.c
parent59d3656f6ed8ef9f0d95673de0cc1e44614cb765 (diff)
escape130: The minimum read in and after decode_skip_count() is 4 bits.
Thus we can check for 4 being available. If the next block is skiped we need 4 bits to encode the skip. If the next block is not skiped then we need 1 bit for the skip code and at least 3 bits for the block. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/escape130.c')
-rw-r--r--libavcodec/escape130.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/escape130.c b/libavcodec/escape130.c
index e7ba7bd508..e3722c51c8 100644
--- a/libavcodec/escape130.c
+++ b/libavcodec/escape130.c
@@ -69,7 +69,7 @@ static unsigned decode_skip_count(GetBitContext* gb) {
unsigned value;
// This function reads a maximum of 27 bits,
// which is within the padding space
- if (!can_safely_read(gb, 1))
+ if (!can_safely_read(gb, 1+3))
return -1;
value = get_bits1(gb);