aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/synth_filter.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-07-28 11:53:18 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-07-28 15:13:46 +0200
commit4ce87ecf2a8a8a9348f9bdbb420f3bee92e6513f (patch)
tree9f5eeb097060816e870e4cf394c96030bc6433ad /libavcodec/synth_filter.c
parentfb0688b079c3751bcd4d64200280858a33e0b9cc (diff)
downloadffmpeg-4ce87ecf2a8a8a9348f9bdbb420f3bee92e6513f.tar.gz
asrc_flite: do not crash on multiple instances.
The voice register functions return the same voice structure upon multiple registration. It causes us two problems: If we delete a voice without deregistering it, it leaves a dangling pointer inside the library. If we delete or unregister a voice at uninit, it may still be in use by another instance of the filter. The second problem is solved by keeping an usage counter inside asrc_flite. This is not thread-safe, but neither is flite itself.
Diffstat (limited to 'libavcodec/synth_filter.c')
0 files changed, 0 insertions, 0 deletions