OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b86216d
)
Handle case of get_bits(0)
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 28 Sep 2006 05:01:02 +0000
(
05:01
+0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Thu, 28 Sep 2006 05:01:02 +0000
(
05:01
+0000)
Originally committed as revision 6365 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/wavpack.c
patch
|
blob
|
history
diff --git
a/libavcodec/wavpack.c
b/libavcodec/wavpack.c
index
4a4a584
..
558e57d
100644
(file)
--- a/
libavcodec/wavpack.c
+++ b/
libavcodec/wavpack.c
@@
-142,7
+142,7
@@
static always_inline int get_tail(GetBitContext *gb, int k)
if(k<1 || k>65535)return 0;
p = av_log2_16bit(k);
e = (1 << (p + 1)) - k - 1;
- res =
get_bits(gb, p)
;
+ res =
p ? get_bits(gb, p) : 0
;
if(res >= e){
res = (res<<1) - e + get_bits1(gb);
}