# HG changeset patch # User cehoyos # Date 1320348785 0 # Node ID 92841858c5cb2db7dece234e69dfd2c1ce2bd7af # Parent 332fa33a47c4c9f2221d725230e87b05da9b4c90 Use init_avformat() instead of av_register_all(). diff -r 332fa33a47c4 -r 92841858c5cb libmpcodecs/ad_spdif.c --- 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;