Ticket #469: h264.c.patch
| File h264.c.patch, 685 bytes (added by , 20 years ago) |
|---|
-
h264.c
old new 8480 8480 return 0; 8481 8481 } 8482 8482 8483 static void h264_parse_close(AVCodecParserContext *s) 8484 { 8485 H264Context *h = s->priv_data; 8486 ParseContext *pc = &h->s.parse_context; 8487 AVCodecContext *avctx = h->s.avctx; 8488 8489 if(avctx && avctx->extradata_size && avctx->extradata) { 8490 av_freep(&avctx->extradata); 8491 avctx->extradata_size = 0; 8492 } 8493 8494 av_free(pc->buffer); 8495 } 8483 8496 8484 8497 AVCodec h264_decoder = { 8485 8498 "h264", … … 8499 8512 sizeof(H264Context), 8500 8513 NULL, 8501 8514 h264_parse, 8502 ff_parse_close,8515 h264_parse_close, 8503 8516 h264_split, 8504 8517 }; 8505 8518
