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
39143914 int coeff_count[64];
39153915 int qmul, qadd, start_i, last_non_zero, i, dc;
39163916 const int esc_length= s->ac_esc_length;
3917− uint8_t * length;
3918− uint8_t * last_length;
3917+ const uint8_t *length, *last_length;
39193918 const int lambda= s->lambda2 >> (FF_LAMBDA_SHIFT - 6);
39203919 int mpeg2_qscale;
39213920

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