vlc | branch: master | Wills Wang <[email protected]> | Sat Jul 27 22:30:03 2013 +0300| [ed7b81cbb825a1f94ff2c2caa8491b98e5744508] | committer: Rémi Denis-Courmont
avformat: set pixel aspect ratio Signed-off-by: Rémi Denis-Courmont <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ed7b81cbb825a1f94ff2c2caa8491b98e5744508 --- modules/demux/avformat/demux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c index a021eaa..b4fa549 100644 --- a/modules/demux/avformat/demux.c +++ b/modules/demux/avformat/demux.c @@ -337,6 +337,8 @@ int OpenDemux( vlc_object_t *p_this ) psz_type = "video"; fmt.video.i_frame_rate = cc->time_base.den; fmt.video.i_frame_rate_base = cc->time_base.num * __MAX( cc->ticks_per_frame, 1 ); + fmt.video.i_sar_num = s->sample_aspect_ratio.num; + fmt.video.i_sar_den = s->sample_aspect_ratio.den; break; case AVMEDIA_TYPE_SUBTITLE: _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
