Mercurial > libavcodec.hg
comparison lclenc.c @ 9747:9db25052df0e libavcodec
Remove useless casts, extradata is already "uint8_t *"
author | reimar |
---|---|
date | Sun, 31 May 2009 08:51:30 +0000 |
parents | e8421cfcc381 |
children | 77920505b11d |
comparison
equal
deleted
inserted
replaced
9746:e8421cfcc381 | 9747:9db25052df0e |
---|---|
148 default: | 148 default: |
149 av_log(avctx, AV_LOG_ERROR, "Input pixel format %s not supported\n", avcodec_get_pix_fmt_name(avctx->pix_fmt)); | 149 av_log(avctx, AV_LOG_ERROR, "Input pixel format %s not supported\n", avcodec_get_pix_fmt_name(avctx->pix_fmt)); |
150 return -1; | 150 return -1; |
151 } | 151 } |
152 | 152 |
153 ((uint8_t*)avctx->extradata)[0]= 4; | 153 avctx->extradata[0]= 4; |
154 ((uint8_t*)avctx->extradata)[1]= 0; | 154 avctx->extradata[1]= 0; |
155 ((uint8_t*)avctx->extradata)[2]= 0; | 155 avctx->extradata[2]= 0; |
156 ((uint8_t*)avctx->extradata)[3]= 0; | 156 avctx->extradata[3]= 0; |
157 ((uint8_t*)avctx->extradata)[4]= c->imgtype; | 157 avctx->extradata[4]= c->imgtype; |
158 ((uint8_t*)avctx->extradata)[5]= c->compression; | 158 avctx->extradata[5]= c->compression; |
159 ((uint8_t*)avctx->extradata)[6]= c->flags; | 159 avctx->extradata[6]= c->flags; |
160 ((uint8_t*)avctx->extradata)[7]= CODEC_ZLIB; | 160 avctx->extradata[7]= CODEC_ZLIB; |
161 c->avctx->extradata_size= 8; | 161 c->avctx->extradata_size= 8; |
162 | 162 |
163 c->zstream.zalloc = Z_NULL; | 163 c->zstream.zalloc = Z_NULL; |
164 c->zstream.zfree = Z_NULL; | 164 c->zstream.zfree = Z_NULL; |
165 c->zstream.opaque = Z_NULL; | 165 c->zstream.opaque = Z_NULL; |