Commit 2cf4d91c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'cd62c04d'

* commit 'cd62c04d':
  h263enc: keep block_last_index always valid during advanced intra coding
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 67911cc5 cd62c04d
......@@ -566,10 +566,6 @@ void ff_h263_encode_mb(MpegEncContext * s,
else
level = (level - (scale>>1))/scale;
/* AIC can change CBP */
if (level == 0 && s->block_last_index[i] == 0)
s->block_last_index[i] = -1;
if(!s->modified_quant){
if (level < -127)
level = -127;
......@@ -592,7 +588,9 @@ void ff_h263_encode_mb(MpegEncContext * s,
/* Update AC/DC tables */
*dc_ptr[i] = rec_intradc[i];
if (s->block_last_index[i] >= 0)
/* AIC can change CBP */
if (s->block_last_index[i] > 0 ||
(s->block_last_index[i] == 0 && level !=0))
cbp |= 1 << (5 - i);
}
}else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment