changeset 34203:362c9229e16e

Call av_register_all() before initialising the SPDIF muxer. Fixes playback with -demuxer mpegts -ac spdifac3. Patch by Naoya OYAMA, naoya D oyama gmail
author cehoyos
date Thu, 03 Nov 2011 18:43:49 +0000
parents a8a5ca46694e
children c1b5018b5edb
files libmpcodecs/ad_spdif.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;