Revision 2d2f443d

View differences:

libavformat/ogg2.c
149 149
}
150 150

  
151 151
static ogg_codec_t *
152
ogg_find_codec (u_char * buf, int size)
152
ogg_find_codec (uint8_t * buf, int size)
153 153
{
154 154
    int i;
155 155

  
......
283 283
    }
284 284

  
285 285
    if (os->bufsize - os->bufpos < size){
286
        u_char *nb = av_malloc (os->bufsize *= 2);
286
        uint8_t *nb = av_malloc (os->bufsize *= 2);
287 287
        memset (nb, 0, os->bufsize);
288 288
        memcpy (nb, os->buf, os->bufpos);
289 289
        av_free (os->buf);
......
358 358
        }
359 359

  
360 360
        if (!complete && os->segp == os->nsegs){
361
            u_char *nb = av_malloc (os->bufsize);
361
            uint8_t *nb = av_malloc (os->bufsize);
362 362
            int size = os->bufpos - os->pstart;
363 363
            memset (nb, 0, os->bufsize);
364 364
            memcpy (nb, os->buf + os->pstart, size);

Also available in: Unified diff