[vlc-commits] mux: mp4: set visible dimensions in stsd instead of buffer
Francois Cartegnie
git at videolan.org
Fri May 3 12:54:14 CEST 2019
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May 3 11:15:54 2019 +0200| [0cb4282a58684ef4d3580b8556147df9b02f4684] | committer: Francois Cartegnie
mux: mp4: set visible dimensions in stsd instead of buffer
(cherry picked from commit 28a53e60cae1e7ffedcf50860becb2bbaf0178ae)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=0cb4282a58684ef4d3580b8556147df9b02f4684
---
modules/mux/mp4/libmp4mux.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index cda59612e7..b7a1ce42ba 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -972,8 +972,8 @@ static bo_t *GetVideBox(vlc_object_t *p_obj, mp4mux_trackinfo_t *p_track, bool b
for (int i = 0; i < 3; i++)
bo_add_32be(vide, 0); // predefined;
- bo_add_16be(vide, p_track->fmt.video.i_width); // i_width
- bo_add_16be(vide, p_track->fmt.video.i_height); // i_height
+ bo_add_16be(vide, p_track->fmt.video.i_visible_width); // i_width
+ bo_add_16be(vide, p_track->fmt.video.i_visible_height); // i_height
bo_add_32be(vide, 0x00480000); // h 72dpi
bo_add_32be(vide, 0x00480000); // v 72dpi
More information about the vlc-commits
mailing list