Commit a91b27b9 authored by mru's avatar mru

call faacDecClose() with all libfaad versions

patch by Diego Petteno flameeyes gmail com


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8574 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5b7aae0b
......@@ -196,8 +196,7 @@ static int faac_decode_end(AVCodecContext *avctx)
{
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(AVCodecContext *avctx)
// 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(AVCodecContext *avctx)
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment