# HG changeset patch # User cehoyos # Date 1320345829 0 # Node ID 362c9229e16e48ee7dc6225f167fbce60ef434f8 # Parent a8a5ca46694efc120d61676ab1b9a782ec0a0432 Call av_register_all() before initialising the SPDIF muxer. Fixes playback with -demuxer mpegts -ac spdifac3. Patch by Naoya OYAMA, naoya D oyama gmail diff -r a8a5ca46694e -r 362c9229e16e libmpcodecs/ad_spdif.c --- a/libmpcodecs/ad_spdif.c Thu Nov 03 14:23:17 2011 +0000 +++ b/libmpcodecs/ad_spdif.c Thu Nov 03 18:43:49 2011 +0000 @@ -106,6 +106,7 @@ sh->context = spdif_ctx; lavf_ctx = spdif_ctx->lavf_ctx; + av_register_all(); lavf_ctx->oformat = av_guess_format(FILENAME_SPDIFENC, NULL, NULL); if (!lavf_ctx->oformat) goto fail;