Originally committed as revision 19031 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reimar Döffinger authored on 2009/05/31 17:51:30... | ... |
@@ -150,14 +150,14 @@ static av_cold int encode_init(AVCodecContext *avctx) |
150 | 150 |
return -1; |
151 | 151 |
} |
152 | 152 |
|
153 |
- ((uint8_t*)avctx->extradata)[0]= 4; |
|
154 |
- ((uint8_t*)avctx->extradata)[1]= 0; |
|
155 |
- ((uint8_t*)avctx->extradata)[2]= 0; |
|
156 |
- ((uint8_t*)avctx->extradata)[3]= 0; |
|
157 |
- ((uint8_t*)avctx->extradata)[4]= c->imgtype; |
|
158 |
- ((uint8_t*)avctx->extradata)[5]= c->compression; |
|
159 |
- ((uint8_t*)avctx->extradata)[6]= c->flags; |
|
160 |
- ((uint8_t*)avctx->extradata)[7]= CODEC_ZLIB; |
|
153 |
+ avctx->extradata[0]= 4; |
|
154 |
+ avctx->extradata[1]= 0; |
|
155 |
+ avctx->extradata[2]= 0; |
|
156 |
+ avctx->extradata[3]= 0; |
|
157 |
+ avctx->extradata[4]= c->imgtype; |
|
158 |
+ avctx->extradata[5]= c->compression; |
|
159 |
+ avctx->extradata[6]= c->flags; |
|
160 |
+ avctx->extradata[7]= CODEC_ZLIB; |
|
161 | 161 |
c->avctx->extradata_size= 8; |
162 | 162 |
|
163 | 163 |
c->zstream.zalloc = Z_NULL; |