mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-30 03:12:08 +00:00
Remove useless casts, extradata is already "uint8_t *"
Originally committed as revision 19031 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e786d3cf80
commit
3b855101b4
@ -150,14 +150,14 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
||||
return -1;
|
||||
}
|
||||
|
||||
((uint8_t*)avctx->extradata)[0]= 4;
|
||||
((uint8_t*)avctx->extradata)[1]= 0;
|
||||
((uint8_t*)avctx->extradata)[2]= 0;
|
||||
((uint8_t*)avctx->extradata)[3]= 0;
|
||||
((uint8_t*)avctx->extradata)[4]= c->imgtype;
|
||||
((uint8_t*)avctx->extradata)[5]= c->compression;
|
||||
((uint8_t*)avctx->extradata)[6]= c->flags;
|
||||
((uint8_t*)avctx->extradata)[7]= CODEC_ZLIB;
|
||||
avctx->extradata[0]= 4;
|
||||
avctx->extradata[1]= 0;
|
||||
avctx->extradata[2]= 0;
|
||||
avctx->extradata[3]= 0;
|
||||
avctx->extradata[4]= c->imgtype;
|
||||
avctx->extradata[5]= c->compression;
|
||||
avctx->extradata[6]= c->flags;
|
||||
avctx->extradata[7]= CODEC_ZLIB;
|
||||
c->avctx->extradata_size= 8;
|
||||
|
||||
c->zstream.zalloc = Z_NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user