OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efac6f7
)
sonicenc: limit quant so that golomb codes are less than 32 bits long
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 18 Sep 2012 15:33:55 +0000
(17:33 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 18 Sep 2012 15:33:55 +0000
(17:33 +0200)
before they could become 33 bits
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/sonic.c
patch
|
blob
|
history
diff --git
a/libavcodec/sonic.c
b/libavcodec/sonic.c
index
acd7412
..
d412d60
100644
(file)
--- a/
libavcodec/sonic.c
+++ b/
libavcodec/sonic.c
@@
-724,8
+724,8
@@
static int sonic_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
if (quant < 1)
quant = 1;
- if (quant > 6553
5
)
- quant = 6553
5
;
+ if (quant > 6553
4
)
+ quant = 6553
4
;
set_ue_golomb(&pb, quant);