]> git.alsa-project.org Git - alsa-plugins.git/commitdiff
Fix segfault of a52 plugin
authorTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 09:53:04 +0000 (11:53 +0200)
committerTakashi Iwai <tiwai@suse.de>
Wed, 23 May 2007 09:53:04 +0000 (11:53 +0200)
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 <fvanderwerf@gmail.com>

a52/pcm_a52.c

index 4549eda30d91597a679c535c7e5f522a874f9126..573912fd5b8ddc76fb46ae6feae5ba3cb04639a8 100644 (file)
@@ -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) {