mirror of https://git.videolan.org/git/ffmpeg.git
avformat/yuv4mpegenc: Add const where appropriate
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
parent
a162fa0772
commit
ef91d18a04
|
@ -184,12 +184,10 @@ static int yuv4_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||||
{
|
{
|
||||||
AVStream *st = s->streams[pkt->stream_index];
|
AVStream *st = s->streams[pkt->stream_index];
|
||||||
AVIOContext *pb = s->pb;
|
AVIOContext *pb = s->pb;
|
||||||
AVFrame *frame;
|
const AVFrame *frame = (const AVFrame *)pkt->data;
|
||||||
int width, height, h_chroma_shift, v_chroma_shift;
|
int width, height, h_chroma_shift, v_chroma_shift;
|
||||||
int i;
|
int i;
|
||||||
uint8_t *ptr, *ptr1, *ptr2;
|
const uint8_t *ptr, *ptr1, *ptr2;
|
||||||
|
|
||||||
frame = (AVFrame *)pkt->data;
|
|
||||||
|
|
||||||
/* construct frame header */
|
/* construct frame header */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue