[vlc-commits] avformat: set pixel aspect ratio
Wills Wang
git at videolan.org
Sat Jul 27 21:37:04 CEST 2013
vlc | branch: master | Wills Wang <wills.wang at wareran.com> | 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 <remi at remlab.net>
> 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:
More information about the vlc-commits
mailing list