changeset 34206:92841858c5cb

Use init_avformat() instead of av_register_all().
author cehoyos
date Thu, 03 Nov 2011 19:33:05 +0000
parents 332fa33a47c4
children 82e08cd39ae2
files libmpcodecs/ad_spdif.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ad_spdif.c	Thu Nov 03 18:51:56 2011 +0000
+++ b/libmpcodecs/ad_spdif.c	Thu Nov 03 19:33:05 2011 +0000
@@ -21,6 +21,7 @@
 #include "config.h"
 #include "mp_msg.h"
 #include "ad_internal.h"
+#include "av_helpers.h"
 #include "libavformat/avformat.h"
 #include "libavcodec/avcodec.h"
 #include "libavutil/opt.h"
@@ -106,7 +107,7 @@
     sh->context = spdif_ctx;
     lavf_ctx    = spdif_ctx->lavf_ctx;
 
-    av_register_all();
+    init_avformat();
     lavf_ctx->oformat = av_guess_format(FILENAME_SPDIFENC, NULL, NULL);
     if (!lavf_ctx->oformat)
         goto fail;