diff 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
line wrap: on
line diff
--- a/h264.h	Fri Apr 10 00:09:07 2009 +0000
+++ b/h264.h	Fri Apr 10 07:01:55 2009 +0000
@@ -569,4 +569,9 @@
  */
 int ff_h264_decode_rbsp_trailing(H264Context *h, const uint8_t *src);
 
+/**
+ * frees any data that may have been allocated in the H264 context like SPS, PPS etc.
+ */
+av_cold ff_h264_free_context(H264Context *h);
+
 #endif /* AVCODEC_H264_H */