[FFmpeg-soc] [soc]: r2723 - aac/aac.c

superdump subversion at mplayerhq.hu
Tue Jul 8 00:54:37 CEST 2008


Author: superdump
Date: Tue Jul  8 00:54:36 2008
New Revision: 2723

Log:
- Use the preferred av_freep()
- Remove unnecessary null ptr check


Modified:
   aac/aac.c

Modified: aac/aac.c
==============================================================================
--- aac/aac.c	(original)
+++ aac/aac.c	Tue Jul  8 00:54:36 2008
@@ -443,15 +443,13 @@ static void ssr_context_init(ssr_context
  * Free a channel element.
  */
 static void che_freep(ChannelElement **s) {
-    if(!*s)
-        return;
 #ifdef AAC_SSR
-    av_free((*s)->ch[0].ssr);
-    av_free((*s)->ch[1].ssr);
+    av_freep(&(*s)->ch[0].ssr);
+    av_freep(&(*s)->ch[1].ssr);
 #endif /* AAC_SSR */
 #ifdef AAC_LTP
-    av_free((*s)->ch[0].ltp_state);
-    av_free((*s)->ch[1].ltp_state);
+    av_freep(&(*s)->ch[0].ltp_state);
+    av_freep(&(*s)->ch[1].ltp_state);
 #endif /* AAC_LTP */
     av_freep(s);
 }



More information about the FFmpeg-soc mailing list