These must not be modified (even when they are initialized at runtime and therefore modifiable).
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -3914,8 +3914,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 3913 unmodified lines | ||
| 3914 | 3914 | int coeff_count[64]; |
| 3915 | 3915 | int qmul, qadd, start_i, last_non_zero, i, dc; |
| 3916 | 3916 | const int esc_length= s->ac_esc_length; |
| 3917 | − uint8_t * length; | |
| 3918 | − uint8_t * last_length; | |
| 3917 | + const uint8_t *length, *last_length; | |
| 3919 | 3918 | const int lambda= s->lambda2 >> (FF_LAMBDA_SHIFT - 6); |
| 3920 | 3919 | int mpeg2_qscale; |
| 3921 | 3920 | |