aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-04 12:46:09 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-04 17:34:44 +0200
commitef91d18a04e0fdf4ca989b34e8fb5d0ea923b5f5 (patch)
tree69bddc74356b82af02706182884b4973d544a9cc
parenta162fa0772ab79fab503a7f2a5c7bb63e970cbfc (diff)
downloadffmpeg-ef91d18a04e0fdf4ca989b34e8fb5d0ea923b5f5.tar.gz
avformat/yuv4mpegenc: Add const where appropriate
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
-rw-r--r--libavformat/yuv4mpegenc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavformat/yuv4mpegenc.c b/libavformat/yuv4mpegenc.c
index fdd020e13b..6b53780ba0 100644
--- a/libavformat/yuv4mpegenc.c
+++ b/libavformat/yuv4mpegenc.c
@@ -184,12 +184,10 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
{
AVStream *st = s->streams[pkt->stream_index];
AVIOContext *pb = s->pb;
- AVFrame *frame;
+ const AVFrame *frame = (const AVFrame *)pkt->data;
int width, height, h_chroma_shift, v_chroma_shift;
int i;
- uint8_t *ptr, *ptr1, *ptr2;
-
- frame = (AVFrame *)pkt->data;
+ const uint8_t *ptr, *ptr1, *ptr2;
/* construct frame header */