# HG changeset patch # User michael # Date 1268693386 0 # Node ID 2029a714b7942c5268095298790926cab896ca6f # Parent ed6cd3544622a65710457ce7025c658c29f382f5 Add ff_ prefix for mpeg2_dc_scale_table. diff -r ed6cd3544622 -r 2029a714b794 mpeg12.c --- a/mpeg12.c Mon Mar 15 21:27:13 2010 +0000 +++ b/mpeg12.c Mon Mar 15 22:49:46 2010 +0000 @@ -122,7 +122,7 @@ { s->y_dc_scale_table= - s->c_dc_scale_table= mpeg2_dc_scale_table[s->intra_dc_precision]; + s->c_dc_scale_table= ff_mpeg2_dc_scale_table[s->intra_dc_precision]; } diff -r ed6cd3544622 -r 2029a714b794 mpegvideo.c --- a/mpegvideo.c Mon Mar 15 21:27:13 2010 +0000 +++ b/mpegvideo.c Mon Mar 15 22:49:46 2010 +0000 @@ -100,7 +100,7 @@ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, }; -const uint8_t * const mpeg2_dc_scale_table[4]={ +const uint8_t * const ff_mpeg2_dc_scale_table[4]={ ff_mpeg1_dc_scale_table, mpeg2_dc_scale_table1, mpeg2_dc_scale_table2, diff -r ed6cd3544622 -r 2029a714b794 mpegvideo.h --- a/mpegvideo.h Mon Mar 15 21:27:13 2010 +0000 +++ b/mpegvideo.h Mon Mar 15 22:49:46 2010 +0000 @@ -774,7 +774,7 @@ /* mpeg12.c */ extern const uint8_t ff_mpeg1_dc_scale_table[128]; -extern const uint8_t * const mpeg2_dc_scale_table[4]; +extern const uint8_t * const ff_mpeg2_dc_scale_table[4]; void mpeg1_encode_picture_header(MpegEncContext *s, int picture_number); void mpeg1_encode_mb(MpegEncContext *s, diff -r ed6cd3544622 -r 2029a714b794 mpegvideo_enc.c --- a/mpegvideo_enc.c Mon Mar 15 21:27:13 2010 +0000 +++ b/mpegvideo_enc.c Mon Mar 15 22:49:46 2010 +0000 @@ -2900,8 +2900,8 @@ s->intra_matrix[j] = av_clip_uint8((ff_mpeg1_default_intra_matrix[i] * s->qscale) >> 3); } s->y_dc_scale_table= - s->c_dc_scale_table= mpeg2_dc_scale_table[s->intra_dc_precision]; - s->intra_matrix[0] = mpeg2_dc_scale_table[s->intra_dc_precision][8]; + s->c_dc_scale_table= ff_mpeg2_dc_scale_table[s->intra_dc_precision]; + s->intra_matrix[0] = ff_mpeg2_dc_scale_table[s->intra_dc_precision][8]; ff_convert_matrix(&s->dsp, s->q_intra_matrix, s->q_intra_matrix16, s->intra_matrix, s->intra_quant_bias, 8, 8, 1); s->qscale= 8;