Commit 5f3ed165 authored by Michael Niedermayer's avatar Michael Niedermayer

fixing hq + adaptive quant

Originally committed as revision 1313 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent d9cb5429
...@@ -2494,6 +2494,7 @@ static inline void copy_context_before_encode(MpegEncContext *d, MpegEncContext ...@@ -2494,6 +2494,7 @@ static inline void copy_context_before_encode(MpegEncContext *d, MpegEncContext
d->last_bits= 0; d->last_bits= 0;
d->mb_skiped= s->mb_skiped; d->mb_skiped= s->mb_skiped;
d->qscale= s->qscale;
} }
static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext *s, int type){ static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext *s, int type){
...@@ -2530,6 +2531,7 @@ static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext * ...@@ -2530,6 +2531,7 @@ static inline void copy_context_after_encode(MpegEncContext *d, MpegEncContext *
for(i=0; i<6; i++) for(i=0; i<6; i++)
d->block_last_index[i]= s->block_last_index[i]; d->block_last_index[i]= s->block_last_index[i];
d->interlaced_dct= s->interlaced_dct; d->interlaced_dct= s->interlaced_dct;
d->qscale= s->qscale;
} }
static inline void encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegEncContext *best, int type, static inline void encode_mb_hq(MpegEncContext *s, MpegEncContext *backup, MpegEncContext *best, int type,
......
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