[FFmpeg-cvslog] avformat/yuv4mpegenc: Add const where appropriate
Andreas Rheinhardt
git at videolan.org
Fri Sep 4 18:44:11 EEST 2020
ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri Sep 4 12:46:09 2020 +0200| [ef91d18a04e0fdf4ca989b34e8fb5d0ea923b5f5] | committer: Andreas Rheinhardt
avformat/yuv4mpegenc: Add const where appropriate
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ef91d18a04e0fdf4ca989b34e8fb5d0ea923b5f5
---
libavformat/yuv4mpegenc.c | 6 ++----
1 file 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 */
More information about the ffmpeg-cvslog
mailing list