mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
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:
parent
6d39f5ffb0
commit
314e0a821e
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user