[vlc-commits] aom: decoder: pass sar values through
Tristan Matthews
git at videolan.org
Tue Jul 24 17:09:57 CEST 2018
vlc/vlc-3.0 | branch: master | Tristan Matthews <tmatth at videolan.org> | Thu Jun 28 21:11:00 2018 -0400| [3fc16eb259acce7c540a70513c5ffb7a7f7cc565] | committer: Francois Cartegnie
aom: decoder: pass sar values through
Cherry-picked from 7d69fdb7d87f1c49352a50ee2374ae13cfeeb184
(cherry picked from commit a9d4ee5e83099b0ecefd58b52fd52350dd541463)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=3fc16eb259acce7c540a70513c5ffb7a7f7cc565
---
modules/codec/aom.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/codec/aom.c b/modules/codec/aom.c
index 427e7e7f5e..dfb0210536 100644
--- a/modules/codec/aom.c
+++ b/modules/codec/aom.c
@@ -269,6 +269,11 @@ static int OpenDecoder(vlc_object_t *p_this)
dec->fmt_out.video.i_height = dec->fmt_in.video.i_height;
dec->fmt_out.i_codec = VLC_CODEC_I420;
+ if (dec->fmt_in.video.i_sar_num > 0 && dec->fmt_in.video.i_sar_den > 0) {
+ dec->fmt_out.video.i_sar_num = dec->fmt_in.video.i_sar_num;
+ dec->fmt_out.video.i_sar_den = dec->fmt_in.video.i_sar_den;
+ }
+
return VLC_SUCCESS;
}
More information about the vlc-commits
mailing list