Mercurial > libavcodec.hg
comparison ratecontrol.c @ 7129:322023e630a6 libavcodec
mark read-only data as const
author | stefang |
---|---|
date | Tue, 24 Jun 2008 20:01:31 +0000 |
parents | 25dcd46b8160 |
children | 6248b6b16e47 |
comparison
equal
deleted
inserted
replaced
7128:614bc53e67a8 | 7129:322023e630a6 |
---|---|
65 int ff_rate_control_init(MpegEncContext *s) | 65 int ff_rate_control_init(MpegEncContext *s) |
66 { | 66 { |
67 RateControlContext *rcc= &s->rc_context; | 67 RateControlContext *rcc= &s->rc_context; |
68 int i; | 68 int i; |
69 const char *error = NULL; | 69 const char *error = NULL; |
70 static const char *const_names[]={ | 70 static const char * const const_names[]={ |
71 "PI", | 71 "PI", |
72 "E", | 72 "E", |
73 "iTex", | 73 "iTex", |
74 "pTex", | 74 "pTex", |
75 "tex", | 75 "tex", |
97 static double (*func1[])(void *, double)={ | 97 static double (*func1[])(void *, double)={ |
98 (void *)bits2qp, | 98 (void *)bits2qp, |
99 (void *)qp2bits, | 99 (void *)qp2bits, |
100 NULL | 100 NULL |
101 }; | 101 }; |
102 static const char *func1_names[]={ | 102 static const char * const func1_names[]={ |
103 "bits2qp", | 103 "bits2qp", |
104 "qp2bits", | 104 "qp2bits", |
105 NULL | 105 NULL |
106 }; | 106 }; |
107 emms_c(); | 107 emms_c(); |