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

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


vlc/vlc-1.1 | branch: master | Jai Menon <jmenon86 at gmail.com> | Thu Jun 17 12:26:13 2010 +0530| [9f3d2d535ded2023310b9183557acc35f039e5be] | 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>
(cherry picked from commit 077f47ff59b9e5e1a523d924a0307105dcdee4bc)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=9f3d2d535ded2023310b9183557acc35f039e5be
---

 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 cd40492..bd4c1a6 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -232,6 +232,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