Commit 834ef6f4 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt Committed by Andreas Rheinhardt

avcodec/dvbsubdec: Add const where appropriate

These pointers sometimes point to static storage (namely to
default_clut), so adding const to the pointed-to type is important to
ensure that one does not accidentally modify something that is not owned
by a single AVCodecContext.
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent 2a4cedac
...@@ -724,8 +724,8 @@ static int save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_ou ...@@ -724,8 +724,8 @@ static int save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_ou
DVBSubDisplayDefinition *display_def = ctx->display_definition; DVBSubDisplayDefinition *display_def = ctx->display_definition;
DVBSubRegion *region; DVBSubRegion *region;
AVSubtitleRect *rect; AVSubtitleRect *rect;
DVBSubCLUT *clut; const DVBSubCLUT *clut;
uint32_t *clut_table; const uint32_t *clut_table;
int i; int i;
int offset_x=0, offset_y=0; int offset_x=0, offset_y=0;
int ret = 0; int ret = 0;
...@@ -1443,8 +1443,8 @@ static int save_display_set(DVBSubContext *ctx) ...@@ -1443,8 +1443,8 @@ static int save_display_set(DVBSubContext *ctx)
{ {
DVBSubRegion *region; DVBSubRegion *region;
DVBSubRegionDisplay *display; DVBSubRegionDisplay *display;
DVBSubCLUT *clut; const DVBSubCLUT *clut;
uint32_t *clut_table; const uint32_t *clut_table;
int x_pos, y_pos, width, height; int x_pos, y_pos, width, height;
int x, y, y_off, x_off; int x, y, y_off, x_off;
uint32_t *pbuf; uint32_t *pbuf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment