[FFmpeg-cvslog] avcodec/magicyuvenc: use const for src pointer

Paul B Mahol git at videolan.org
Sun Sep 10 14:48:56 EEST 2023


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sun Sep 10 12:17:21 2023 +0200| [800fbc98a5e8f62541c6534458089c67a71880ba] | committer: Paul B Mahol

avcodec/magicyuvenc: use const for src pointer

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=800fbc98a5e8f62541c6534458089c67a71880ba
---

 libavcodec/magicyuvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/magicyuvenc.c b/libavcodec/magicyuvenc.c
index 429efccd24..2773239297 100644
--- a/libavcodec/magicyuvenc.c
+++ b/libavcodec/magicyuvenc.c
@@ -413,7 +413,7 @@ static int encode_table(AVCodecContext *avctx,
     return 0;
 }
 
-static int encode_plane_slice(uint8_t *src, uint8_t *dst, int dst_size,
+static int encode_plane_slice(const uint8_t *src, uint8_t *dst, int dst_size,
                               int width, int height, HuffEntry *he, int prediction)
 {
     PutBitContext pb;



More information about the ffmpeg-cvslog mailing list