[MPlayer-cvslog] r38460 - trunk/libmpcodecs/ae_lavc.c
al
subversion at mplayerhq.hu
Sun Apr 14 15:12:16 EEST 2024
Author: al
Date: Sun Apr 14 15:12:16 2024
New Revision: 38460
Log:
ae lavc: Generate a guessed AVChannelLayout based on the number of channels
Otherwise most (all?) FFmpeg encoders won't work.
Modified:
trunk/libmpcodecs/ae_lavc.c
Modified: trunk/libmpcodecs/ae_lavc.c
==============================================================================
--- trunk/libmpcodecs/ae_lavc.c Sun Apr 14 14:05:39 2024 (r38459)
+++ trunk/libmpcodecs/ae_lavc.c Sun Apr 14 15:12:16 2024 (r38460)
@@ -192,7 +192,7 @@ int mpae_init_lavc(audio_encoder_t *enco
mp_msg(MSGT_MENCODER,MSGL_ERR, "Audio encoder requires unknown or unsupported input format\n");
return 0;
}
- lavc_actx->ch_layout.nb_channels = encoder->params.channels;
+ av_channel_layout_default(&lavc_actx->ch_layout, encoder->params.channels);
lavc_actx->sample_rate = encoder->params.sample_rate;
lavc_actx->time_base.num = 1;
lavc_actx->time_base.den = encoder->params.sample_rate;
More information about the MPlayer-cvslog
mailing list