diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-12-03 16:47:17 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-12-03 16:47:17 +0000 |
commit | 554daa2402bb52e8fd5dee14ef49b5043eda0fe6 (patch) | |
tree | bad9fb00f7f43044788c97515575e6eaf4fa010c /libavcodec/mpegvideo.c | |
parent | 6beeb962a2e62abf9857d4c4a167341acee8b867 (diff) | |
download | ffmpeg-554daa2402bb52e8fd5dee14ef49b5043eda0fe6.tar.gz |
cleanup
Originally committed as revision 2558 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 525c1f12e9..daf1539044 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -3123,10 +3123,7 @@ static void encode_mb(MpegEncContext *s, int motion_x, int motion_y) } } } - s->qscale= last_qp + s->dquant; - s->chroma_qscale= s->chroma_qscale_table[ s->qscale ]; - s->y_dc_scale= s->y_dc_scale_table[ s->qscale ]; - s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ]; + ff_set_qscale(s, last_qp + s->dquant); } if (s->mb_intra) { @@ -3864,9 +3861,7 @@ static void encode_picture(MpegEncContext *s, int picture_number) s->mb_x=0; s->mb_y= mb_y; - s->chroma_qscale= s->chroma_qscale_table[ s->qscale ]; - s->y_dc_scale= s->y_dc_scale_table[ s->qscale ]; - s->c_dc_scale= s->c_dc_scale_table[ s->chroma_qscale ]; + ff_set_qscale(s, s->qscale); ff_init_block_index(s); for(mb_x=0; mb_x < s->mb_width; mb_x++) { |