[Ffmpeg-cvslog] r8574 - trunk/libavcodec/faad.c

mru subversion
Sat Mar 31 18:47:39 CEST 2007


Author: mru
Date: Sat Mar 31 18:47:39 2007
New Revision: 8574

Modified:
   trunk/libavcodec/faad.c

Log:
call faacDecClose() with all libfaad versions
patch by Diego Petteno frameeyes gmail com


Modified: trunk/libavcodec/faad.c
==============================================================================
--- trunk/libavcodec/faad.c	(original)
+++ trunk/libavcodec/faad.c	Sat Mar 31 18:47:39 2007
@@ -196,8 +196,7 @@ static int faac_decode_end(AVCodecContex
 {
     FAACContext *s = (FAACContext *) avctx->priv_data;
 
-    if (s->faacDecClose)
-        s->faacDecClose(s->faac_handle);
+    s->faacDecClose(s->faac_handle);
 
     dlclose(s->handle);
     return 0;
@@ -228,6 +227,7 @@ static int faac_decode_init(AVCodecConte
 
         // resolve all needed function calls
         dfaac(Open, (faacDecHandle FAADAPI (*)(void)));
+        dfaac(Close, (void FAADAPI (*)(faacDecHandle hDecoder)));
         dfaac(GetCurrentConfiguration, (faacDecConfigurationPtr
                                         FAADAPI (*)(faacDecHandle)));
 #ifndef FAAD2_VERSION
@@ -239,7 +239,6 @@ static int faac_decode_init(AVCodecConte
     dfaac(Init2, (int FAADAPI (*)(faacDecHandle, unsigned char*,
                                        unsigned long, unsigned long*,
                                        unsigned long*)));
-    dfaac(Close, (void FAADAPI (*)(faacDecHandle hDecoder)));
         dfaac(Decode, (int FAADAPI (*)(faacDecHandle, unsigned char*,
                              unsigned long*, short*, unsigned long*)));
 #else




More information about the ffmpeg-cvslog mailing list