diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 08:51:30 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-05-31 08:51:30 +0000 |
commit | 3b855101b4e2821e835731351f84a93654729cdc (patch) | |
tree | 1dda1e3acd8f47ddb09f8b63c1e91aa1bad49eab /libavcodec/lclenc.c | |
parent | e786d3cf8023414babcc9f1d3a8fdd5a29c3fd70 (diff) | |
download | ffmpeg-3b855101b4e2821e835731351f84a93654729cdc.tar.gz |
Remove useless casts, extradata is already "uint8_t *"
Originally committed as revision 19031 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/lclenc.c')
-rw-r--r-- | libavcodec/lclenc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavcodec/lclenc.c b/libavcodec/lclenc.c index 5385a84e8a..451f8e607e 100644 --- a/libavcodec/lclenc.c +++ b/libavcodec/lclenc.c @@ -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; |