diff mbox series

[FFmpeg-devel,v2,56/69] avcodec/mpegpicture: Constify src parameter of ff_update_picture_tables

Message ID AM7PR03MB666075A25E846ADAC708D12A8F269@AM7PR03MB6660.eurprd03.prod.outlook.com
State Accepted
Commit 66d4c721622bcdfb0ae8ec146994500ba2270d43
Headers show
Series [FFmpeg-devel,v2,01/69] avcodec/avcodec: Avoid MpegEncContext in AVHWAccel.decode_mb | expand

Commit Message

Andreas Rheinhardt Feb. 1, 2022, 1:06 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/mpegpicture.c | 2 +-
 libavcodec/mpegpicture.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/mpegpicture.c b/libavcodec/mpegpicture.c
index 27e497c404..07fc79685c 100644
--- a/libavcodec/mpegpicture.c
+++ b/libavcodec/mpegpicture.c
@@ -333,7 +333,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 e1e9f8d7e0..67f83404fa 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);