History

avcodec/mpegvideo_enc: Constify pointers to static storage

These must not be modified (even when they are initialized at runtime and therefore modifiable).

Andreas Rheinhardt committed 2 years ago

Commit 390dbcb1 parent b28bf831 file · +1 −2Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/mpegvideo_enc.c+1−2
@@ -3914,8 +3914,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, · 3913 unmodified lines
3914 int coeff_count[64];3914 int coeff_count[64];
3915 int qmul, qadd, start_i, last_non_zero, i, dc;3915 int qmul, qadd, start_i, last_non_zero, i, dc;
3916 const int esc_length= s->ac_esc_length;3916 const int esc_length= s->ac_esc_length;
3917 uint8_t * length;3917 const uint8_t *length, *last_length;
3918 uint8_t * last_length;
3919 const int lambda= s->lambda2 >> (FF_LAMBDA_SHIFT - 6);3918 const int lambda= s->lambda2 >> (FF_LAMBDA_SHIFT - 6);
3920 int mpeg2_qscale;3919 int mpeg2_qscale;
3921 3920

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t