[vlc-commits] avformat audio mux: set frame size

Rafaël Carré git at videolan.org
Wed Feb 19 13:53:40 CET 2014


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Wed Feb 19 13:53:35 2014 +0100| [61426dcb1ec7497cd6413a174cc6687d7cd46df7] | committer: Rafaël Carré

avformat audio mux: set frame size

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

 modules/demux/avformat/mux.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 7702bab..0ae5c80 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -221,6 +221,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
     case AUDIO_ES:
         codec->codec_type = AVMEDIA_TYPE_AUDIO;
         codec->channels = fmt->audio.i_channels;
+        codec->frame_size = fmt->audio.i_frame_length;
         codec->sample_rate = fmt->audio.i_rate;
         codec->time_base = (AVRational){1, codec->sample_rate};
         codec->frame_size = fmt->audio.i_frame_length;



More information about the vlc-commits mailing list