avcodec/mpegvideo: Constify src of ff_update_duplicate_context()

Also do the same for update_duplicate_context_after_me()
in mpegvideo_enc.c.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-01-31 05:24:02 +01:00
parent 6d39f5ffb0
commit 314e0a821e
3 changed files with 3 additions and 3 deletions

View File

@ -469,7 +469,7 @@ static void backup_duplicate_context(MpegEncContext *bak, MpegEncContext *src)
#undef COPY
}
int ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src)
int ff_update_duplicate_context(MpegEncContext *dst, const MpegEncContext *src)
{
MpegEncContext bak;
int i, ret;

View File

@ -589,7 +589,7 @@ void ff_mpv_reconstruct_mb(MpegEncContext *s, int16_t block[12][64]);
void ff_clean_intra_table_entries(MpegEncContext *s);
int ff_update_duplicate_context(MpegEncContext *dst, MpegEncContext *src);
int ff_update_duplicate_context(MpegEncContext *dst, const MpegEncContext *src);
void ff_set_qscale(MpegEncContext * s, int qscale);
void ff_mpv_idct_init(MpegEncContext *s);

View File

@ -250,7 +250,7 @@ void ff_init_qscale_tab(MpegEncContext *s)
}
static void update_duplicate_context_after_me(MpegEncContext *dst,
MpegEncContext *src)
const MpegEncContext *src)
{
#define COPY(a) dst->a= src->a
COPY(pict_type);