diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-10 20:09:05 +0100 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2012-02-10 23:18:52 +0100 |
commit | 3fe00cac71ed8d375c8e938c726f154d1b961c0e (patch) | |
tree | a21c55238382e765d378265b26b835cfffe2b830 | |
parent | 5338566eafe0e019f6a9c5cbbc1791beea6f19c8 (diff) | |
download | ffmpeg-3fe00cac71ed8d375c8e938c726f154d1b961c0e.tar.gz |
Fix bitexact intra mismatch control.
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>
-rw-r--r-- | libavcodec/mpegvideo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 5e9189c8b8..a3f1e62160 100644 --- 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]; |