[vlc-commits] avformat: set stream sar.den as we set sar.num also
Ilkka Ollakka
git at videolan.org
Fri Mar 15 11:10:24 CET 2013
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Fri Mar 15 12:07:05 2013 +0200| [6d3de8c01f5a50cbf7f2f8e230de1b16c6eb1905] | committer: Ilkka Ollakka
avformat: set stream sar.den as we set sar.num also
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6d3de8c01f5a50cbf7f2f8e230de1b16c6eb1905
---
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 a8c4519..b8734d5 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -222,6 +222,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
&codec->sample_aspect_ratio.den,
p_input->p_fmt->video.i_sar_num,
p_input->p_fmt->video.i_sar_den, 1 << 30 /* something big */ );
+ stream->sample_aspect_ratio.den = codec->sample_aspect_ratio.den;
stream->sample_aspect_ratio.num = codec->sample_aspect_ratio.num;
codec->time_base.den = p_input->p_fmt->video.i_frame_rate;
codec->time_base.num = p_input->p_fmt->video.i_frame_rate_base;
More information about the vlc-commits
mailing list