Mercurial > libavcodec.hg
comparison h264.h @ 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 | 793cf8c68c4f |
children | 828d15d322ed |
comparison
equal
deleted
inserted
replaced
9379:d31c367da415 | 9380:54e650136c87 |
---|---|
567 * identifies the exact end of the bitstream | 567 * identifies the exact end of the bitstream |
568 * @return the length of the trailing, or 0 if damaged | 568 * @return the length of the trailing, or 0 if damaged |
569 */ | 569 */ |
570 int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src); | 570 int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src); |
571 | 571 |
572 /** | |
573 * frees any data that may have been allocated in the H264 context like SPS, PPS etc. | |
574 */ | |
575 av_cold ff_h264_free_context(H264Context *h); | |
576 | |
572 #endif /* AVCODEC_H264_H */ | 577 #endif /* AVCODEC_H264_H */ |