sout: transcode: ensure audio format=codec on probing
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 12 Feb 2019 22:09:11 +0000 (23:09 +0100)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 12 Feb 2019 22:27:02 +0000 (23:27 +0100)
refs #21917

modules/stream_out/transcode/encoder/audio.c

index 64f311e..6571663 100644 (file)
@@ -191,6 +191,8 @@ int transcode_encoder_audio_test( vlc_object_t *p_obj,
         module_unneed( p_encoder, p_module );
     }
 
+    p_encoder->fmt_in.audio.i_format = p_encoder->fmt_in.i_codec;
+
     /* copy our requested format */
     es_format_Copy( p_enc_wanted_in, &p_encoder->fmt_in );