avcodec/mpegpicture: Constify src parameter of ff_update_picture_tables

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt 2022-01-31 07:41:40 +01:00
parent 8b856a9e53
commit 66d4c72162
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ void ff_mpeg_unref_picture(AVCodecContext *avctx, Picture *pic)
memset((uint8_t*)pic + off, 0, sizeof(*pic) - off);
}
int ff_update_picture_tables(Picture *dst, Picture *src)
int ff_update_picture_tables(Picture *dst, const Picture *src)
{
int i, ret;

View File

@ -109,7 +109,7 @@ int ff_mpeg_ref_picture(AVCodecContext *avctx, Picture *dst, Picture *src);
void ff_mpeg_unref_picture(AVCodecContext *avctx, Picture *picture);
void ff_mpv_picture_free(AVCodecContext *avctx, Picture *pic);
int ff_update_picture_tables(Picture *dst, Picture *src);
int ff_update_picture_tables(Picture *dst, const Picture *src);
int ff_find_unused_picture(AVCodecContext *avctx, Picture *picture, int shared);