git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d813e4
)
tta: check remaining bitstream size while reading unary value
author
Justin Ruggles
<justin.ruggles@gmail.com>
Wed, 21 Sep 2011 18:16:24 +0000
(14:16 -0400)
committer
Justin Ruggles
<justin.ruggles@gmail.com>
Tue, 25 Oct 2011 15:22:01 +0000
(11:22 -0400)
libavcodec/tta.c
patch
|
blob
|
history
diff --git
a/libavcodec/tta.c
b/libavcodec/tta.c
index
5a11436
..
9330e2d
100644
(file)
--- a/
libavcodec/tta.c
+++ b/
libavcodec/tta.c
@@
-182,7
+182,7
@@
static int tta_get_unary(GetBitContext *gb)
int ret = 0;
// count ones
- while
(
get_bits1(gb))
+ while
(get_bits_left(gb) > 0 &&
get_bits1(gb))
ret++;
return ret;
}