Author: cehoyos Date: Thu Nov 3 19:43:49 2011 New Revision: 34291 Log: Call av_register_all() before initialising the SPDIF muxer. Fixes playback with -demuxer mpegts -ac spdifac3. Patch by Naoya OYAMA, naoya D oyama gmail Modified: trunk/libmpcodecs/ad_spdif.c Modified: trunk/libmpcodecs/ad_spdif.c ============================================================================== --- trunk/libmpcodecs/ad_spdif.c Thu Nov 3 15:23:17 2011 (r34290) +++ trunk/libmpcodecs/ad_spdif.c Thu Nov 3 19:43:49 2011 (r34291) @@ -106,6 +106,7 @@ static int init(sh_audio_t *sh) 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;
On Thu, Nov 03, 2011 at 07:43:50PM +0100, cehoyos wrote:
Author: cehoyos Date: Thu Nov 3 19:43:49 2011 New Revision: 34291
Log: Call av_register_all() before initialising the SPDIF muxer.
Fixes playback with -demuxer mpegts -ac spdifac3. Patch by Naoya OYAMA, naoya D oyama gmail
Modified: trunk/libmpcodecs/ad_spdif.c
Modified: trunk/libmpcodecs/ad_spdif.c ============================================================================== --- trunk/libmpcodecs/ad_spdif.c Thu Nov 3 15:23:17 2011 (r34290) +++ trunk/libmpcodecs/ad_spdif.c Thu Nov 3 19:43:49 2011 (r34291) @@ -106,6 +106,7 @@ static int init(sh_audio_t *sh) sh->context = spdif_ctx; lavf_ctx = spdif_ctx->lavf_ctx;
+ av_register_all();
Please use the init_avformat function from av_helpers instead.
participants (2)
-
cehoyos -
Reimar Döffinger