[FFmpeg-devel] [PATCH 07/25] avcodec/magicyuv: Use const uint8_t* for pointer to immutable data

Paul B Mahol onemda at gmail.com
Sat Sep 26 13:40:05 EEST 2020


On Sat, Sep 26, 2020 at 12:27:46PM +0200, Andreas Rheinhardt wrote:
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> ---
>  libavcodec/magicyuv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

lgtm

> 
> diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c
> index f7dfef0eb8..3413d8f298 100644
> --- a/libavcodec/magicyuv.c
> +++ b/libavcodec/magicyuv.c
> @@ -63,7 +63,7 @@ typedef struct MagicYUVContext {
>      int               color_matrix;   // video color matrix
>      int               flags;
>      int               interlaced;     // video is interlaced
> -    uint8_t          *buf;            // pointer to AVPacket->data
> +    const uint8_t    *buf;            // pointer to AVPacket->data
>      int               hshift[4];
>      int               vshift[4];
>      Slice            *slices[4];      // slice bitstream positions for each plane
> -- 
> 2.25.1
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-devel mailing list