Revision 3b855101

View differences:

libavcodec/lclenc.c
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;

Also available in: Unified diff