Browse Source

avformat/yuv4mpegenc: Add const where appropriate

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
tags/n4.4
Andreas Rheinhardt 5 years ago
parent
commit
ef91d18a04
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      libavformat/yuv4mpegenc.c

+ 2
- 4
libavformat/yuv4mpegenc.c View File

@@ -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 */



Loading…
Cancel
Save