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:
5338566
)
Fix bitexact intra mismatch control.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 10 Feb 2012 19:09:05 +0000
(20:09 +0100)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Fri, 10 Feb 2012 22:18:52 +0000
(23:18 +0100)
The DC coefficient should be included, too.
This probably was missed because DC quantizer is always
even for MPEG-1/2 but this function is also used for MPEG-4.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
5e9189c
..
a3f1e62
100644
(file)
--- a/
libavcodec/mpegvideo.c
+++ b/
libavcodec/mpegvideo.c
@@
-2736,6
+2736,7
@@
static void dct_unquantize_mpeg2_intra_bitexact(MpegEncContext *s,
else nCoeffs= s->block_last_index[n];
block[0] *= n < 4 ? s->y_dc_scale : s->c_dc_scale;
+ sum += block[0];
quant_matrix = s->intra_matrix;
for(i=1;i<=nCoeffs;i++) {
int j= s->intra_scantable.permutated[i];