[vlc-commits] commit: AVFormat Muxer : Set codec frame size. (Jai Menon )

git at videolan.org git at videolan.org
Thu Jun 17 12:17:14 CEST 2010


vlc | branch: master | Jai Menon <jmenon86 at gmail.com> | Thu Jun 17 12:26:13 2010 +0530| [077f47ff59b9e5e1a523d924a0307105dcdee4bc] | committer: 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 <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=077f47ff59b9e5e1a523d924a0307105dcdee4bc
---

 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:



More information about the vlc-commits mailing list