Index: alsa-plugins-1.0.14rc1/a52/pcm_a52.c =================================================================== --- alsa-plugins-1.0.14rc1.orig/a52/pcm_a52.c +++ alsa-plugins-1.0.14rc1/a52/pcm_a52.c @@ -421,6 +421,8 @@ static int a52_prepare(snd_pcm_ioplug_t { struct a52_ctx *rec = io->private_data; + avcodec_init(); + a52_free(rec); rec->avctx = avcodec_alloc_context();