avcodec/h264_parser: Use av_freep() to avoid leaving stale pointers

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/71/merge
Michael Niedermayer 11 years ago
parent 2a26b22a17
commit fc8d59fa6f
  1. 2
      libavcodec/h264_parser.c

@ -547,7 +547,7 @@ static void close(AVCodecParserContext *s)
H264Context *h = s->priv_data;
ParseContext *pc = &h->parse_context;
av_free(pc->buffer);
av_freep(&pc->buffer);
ff_h264_free_context(h);
}

Loading…
Cancel
Save