Revision b83f7eb2 libavcodec/faad.c

View differences:

libavcodec/faad.c
196 196
{
197 197
    FAACContext *s = (FAACContext *) avctx->priv_data;
198 198

  
199
    if (s->faacDecClose)
200
        s->faacDecClose(s->faac_handle);
199
    s->faacDecClose(s->faac_handle);
201 200

  
202 201
    dlclose(s->handle);
203 202
    return 0;
......
228 227

  
229 228
        // resolve all needed function calls
230 229
        dfaac(Open, (faacDecHandle FAADAPI (*)(void)));
230
        dfaac(Close, (void FAADAPI (*)(faacDecHandle hDecoder)));
231 231
        dfaac(GetCurrentConfiguration, (faacDecConfigurationPtr
232 232
                                        FAADAPI (*)(faacDecHandle)));
233 233
#ifndef FAAD2_VERSION
......
239 239
    dfaac(Init2, (int FAADAPI (*)(faacDecHandle, unsigned char*,
240 240
                                       unsigned long, unsigned long*,
241 241
                                       unsigned long*)));
242
    dfaac(Close, (void FAADAPI (*)(faacDecHandle hDecoder)));
243 242
        dfaac(Decode, (int FAADAPI (*)(faacDecHandle, unsigned char*,
244 243
                             unsigned long*, short*, unsigned long*)));
245 244
#else

Also available in: Unified diff