[vlc-commits] Revert "AVFormat Muxer : Set codec frame size."

Rémi Denis-Courmont git at videolan.org
Sat Nov 4 09:38:05 CET 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Nov  4 10:26:54 2017 +0200| [333a300adc4c8e03bef764046678d6f583a29ef7] | committer: Rémi Denis-Courmont

Revert "AVFormat Muxer : Set codec frame size."

This reverts commit 077f47ff59b9e5e1a523d924a0307105dcdee4bc.
frame_size is set by libavcodec, not the user.

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

 modules/demux/avformat/mux.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 1c01253184..5257eaa929 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -250,7 +250,6 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
         codec->channels = fmt->audio.i_channels;
         codec->sample_rate = fmt->audio.i_rate;
         stream->time_base = (AVRational){1, codec->sample_rate};
-        codec->frame_size = fmt->audio.i_frame_length;
         if (fmt->i_bitrate == 0) {
             msg_Warn( p_mux, "Missing audio bitrate, assuming 64k" );
             i_bitrate = 64000;



More information about the vlc-commits mailing list