comparison libmpcodecs/ad_spdif.c @ 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 febe300dbfc0
children c1b5018b5edb
comparison
equal deleted inserted replaced
34202:a8a5ca46694e 34203:362c9229e16e
104 goto fail; 104 goto fail;
105 105
106 sh->context = spdif_ctx; 106 sh->context = spdif_ctx;
107 lavf_ctx = spdif_ctx->lavf_ctx; 107 lavf_ctx = spdif_ctx->lavf_ctx;
108 108
109 av_register_all();
109 lavf_ctx->oformat = av_guess_format(FILENAME_SPDIFENC, NULL, NULL); 110 lavf_ctx->oformat = av_guess_format(FILENAME_SPDIFENC, NULL, NULL);
110 if (!lavf_ctx->oformat) 111 if (!lavf_ctx->oformat)
111 goto fail; 112 goto fail;
112 lavf_ctx->priv_data = av_mallocz(lavf_ctx->oformat->priv_data_size); 113 lavf_ctx->priv_data = av_mallocz(lavf_ctx->oformat->priv_data_size);
113 if (!lavf_ctx->priv_data) 114 if (!lavf_ctx->priv_data)