[FFmpeg-cvslog] avcodec/mpegpicture: Constify src parameter of ff_update_picture_tables
Andreas Rheinhardt
git at videolan.org
Sun Feb 13 21:26:15 EET 2022
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Mon Jan 31 07:41:40 2022 +0100| [66d4c721622bcdfb0ae8ec146994500ba2270d43] | committer: Andreas Rheinhardt
avcodec/mpegpicture: Constify src parameter of ff_update_picture_tables
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=66d4c721622bcdfb0ae8ec146994500ba2270d43
---
libavcodec/mpegpicture.c | 2 +-
libavcodec/mpegpicture.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index cb3ebcf7e7..681ccc2b82 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -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;
diff --git a/libavcodec/mpegpicture.h b/libavcodec/mpegpicture.h
index c79693caba..0671bbae8e 100644
--- a/libavcodec/mpegpicture.h
+++ b/libavcodec/mpegpicture.h
@@ -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);
More information about the ffmpeg-cvslog
mailing list