Commit b9eb5d3b authored by reimar's avatar reimar

Remove useless casts, extradata is already "uint8_t *"


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19031 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 07e865b4
...@@ -150,14 +150,14 @@ static av_cold int encode_init(AVCodecContext *avctx) ...@@ -150,14 +150,14 @@ static av_cold int encode_init(AVCodecContext *avctx)
return -1; return -1;
} }
((uint8_t*)avctx->extradata)[0]= 4; avctx->extradata[0]= 4;
((uint8_t*)avctx->extradata)[1]= 0; avctx->extradata[1]= 0;
((uint8_t*)avctx->extradata)[2]= 0; avctx->extradata[2]= 0;
((uint8_t*)avctx->extradata)[3]= 0; avctx->extradata[3]= 0;
((uint8_t*)avctx->extradata)[4]= c->imgtype; avctx->extradata[4]= c->imgtype;
((uint8_t*)avctx->extradata)[5]= c->compression; avctx->extradata[5]= c->compression;
((uint8_t*)avctx->extradata)[6]= c->flags; avctx->extradata[6]= c->flags;
((uint8_t*)avctx->extradata)[7]= CODEC_ZLIB; avctx->extradata[7]= CODEC_ZLIB;
c->avctx->extradata_size= 8; c->avctx->extradata_size= 8;
c->zstream.zalloc = Z_NULL; c->zstream.zalloc = Z_NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment