diff 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
line wrap: on
line diff
--- a/h264_parser.c	Fri Apr 10 00:09:07 2009 +0000
+++ b/h264_parser.c	Fri Apr 10 07:01:55 2009 +0000
@@ -306,6 +306,7 @@
     ParseContext *pc = &h->s.parse_context;
 
     av_free(pc->buffer);
+    ff_h264_free_context(h);
 }