Revision e9ca315d

View differences:

libavcodec/h264_parser.c
309 309
    ff_h264_free_context(h);
310 310
}
311 311

  
312
static int init(AVCodecParserContext *s)
313
{
314
    H264Context *h = s->priv_data;
315
    h->thread_context[0] = h;
316
    return 0;
317
}
312 318

  
313 319
AVCodecParser h264_parser = {
314 320
    { CODEC_ID_H264 },
315 321
    sizeof(H264Context),
316
    NULL,
322
    init,
317 323
    h264_parse,
318 324
    close,
319 325
    h264_split,

Also available in: Unified diff