Commit 077f47ff authored by Jai Menon's avatar Jai Menon Committed by Jean-Baptiste Kempf

AVFormat Muxer : Set codec frame size.

This allows for correct output when using muxers (like the MOV/MP4 muxer)
that require frame_size set.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7ab5a157
......@@ -238,6 +238,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
codec->channels = p_input->p_fmt->audio.i_channels;
codec->sample_rate = p_input->p_fmt->audio.i_rate;
codec->time_base = (AVRational){1, codec->sample_rate};
codec->frame_size = p_input->p_fmt->audio.i_frame_length;
break;
case VIDEO_ES:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment