Mercurial > libavcodec.hg
changeset 8644:0b13b33e175e libavcodec
avoid duplication of dquant_code
author | stefang |
---|---|
date | Sat, 24 Jan 2009 14:26:40 +0000 |
parents | 1fa3e8a72ca5 |
children | ead59531f24a |
files | h263.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/h263.c Sat Jan 24 08:15:43 2009 +0000 +++ b/h263.c Sat Jan 24 14:26:40 2009 +0000 @@ -895,6 +895,8 @@ } } +static const int dquant_code[5]= {1,0,9,2,3}; + void mpeg4_encode_mb(MpegEncContext * s, DCTELEM block[6][64], int motion_x, int motion_y) @@ -904,7 +906,6 @@ PutBitContext * const tex_pb = s->data_partitioning && s->pict_type!=FF_B_TYPE ? &s->tex_pb : &s->pb; PutBitContext * const dc_pb = s->data_partitioning && s->pict_type!=FF_I_TYPE ? &s->pb2 : &s->pb; const int interleaved_stats= (s->flags&CODEC_FLAG_PASS1) && !s->data_partitioning ? 1 : 0; - const int dquant_code[5]= {1,0,9,2,3}; // printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y); if (!s->mb_intra) { @@ -1268,7 +1269,6 @@ int16_t rec_intradc[6]; int16_t *dc_ptr[6]; const int interleaved_stats= (s->flags&CODEC_FLAG_PASS1); - const int dquant_code[5]= {1,0,9,2,3}; //printf("**mb x=%d y=%d\n", s->mb_x, s->mb_y); if (!s->mb_intra) {