[vlc-devel] [PATCH] AVFormat Muxer : Set codec frame size.

Jai Menon jmenon86 at gmail.com
Thu Jun 17 08:38:13 CEST 2010


This allows for correct output when using muxers (like the MOV/MP4 muxer)
that require frame_size set.
---
 modules/demux/avformat/mux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 00c2277..a09aab4 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -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:
-- 
1.7.1




More information about the vlc-devel mailing list