From 8d4f7e4e6b62cdeb39b8996b2ee24dd5770c81ca Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 23 May 2007 11:53:04 +0200 Subject: Fix segfault of a52 plugin Added the missing call of avcodec_init() to avoid setfault of a52 plugin with the latest svn revision of ffmpeg. From: Fabian van der Werf --- a52/pcm_a52.c | 1 + 1 file changed, 1 insertion(+) (limited to 'a52') diff --git a/a52/pcm_a52.c b/a52/pcm_a52.c index 4549eda..573912f 100644 --- a/a52/pcm_a52.c +++ b/a52/pcm_a52.c @@ -676,6 +676,7 @@ SND_PCM_PLUGIN_DEFINE_FUNC(a52) rec->channels = channels; rec->format = format; + avcodec_init(); avcodec_register_all(); rec->codec = avcodec_find_encoder(CODEC_ID_AC3); if (! rec->codec) { -- cgit