summaryrefslogtreecommitdiffstats
path: root/a52
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2007-05-23 11:53:04 +0200
committerTakashi Iwai <tiwai@suse.de>2007-05-23 11:53:04 +0200
commit8d4f7e4e6b62cdeb39b8996b2ee24dd5770c81ca (patch)
treeb8098b4083b0386f734707cbac2a4d734cee648a /a52
parent7244955fe9ad9cbbc8f16c927da4d9bd4e5d1b20 (diff)
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 <fvanderwerf@gmail.com>
Diffstat (limited to 'a52')
-rw-r--r--a52/pcm_a52.c1
1 files changed, 1 insertions, 0 deletions
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) {