Mercurial > libavcodec.hg
comparison h264_parser.c @ 9380:54e650136c87 libavcodec
Add a ff_h264_free_context function and call it from the H.264 parser.
This ensures that the parser will no longer leak memory for all SPS/PPS it encounters.
author | reimar |
---|---|
date | Fri, 10 Apr 2009 07:01:55 +0000 |
parents | 6fdc4c276ef1 |
children | cb73e3273191 |
comparison
equal
deleted
inserted
replaced
9379:d31c367da415 | 9380:54e650136c87 |
---|---|
304 { | 304 { |
305 H264Context *h = s->priv_data; | 305 H264Context *h = s->priv_data; |
306 ParseContext *pc = &h->s.parse_context; | 306 ParseContext *pc = &h->s.parse_context; |
307 | 307 |
308 av_free(pc->buffer); | 308 av_free(pc->buffer); |
309 ff_h264_free_context(h); | |
309 } | 310 } |
310 | 311 |
311 | 312 |
312 AVCodecParser h264_parser = { | 313 AVCodecParser h264_parser = { |
313 { CODEC_ID_H264 }, | 314 { CODEC_ID_H264 }, |