[vlc-commits] mux: mp4: set visible dimensions in stsd instead of buffer

Francois Cartegnie git at videolan.org
Fri May 3 13:50:16 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May  3 11:15:54 2019 +0200| [25828389824907fe55e4f124b08516a58b3e3ce8] | committer: Francois Cartegnie

mux: mp4: set visible dimensions in stsd instead of buffer

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=25828389824907fe55e4f124b08516a58b3e3ce8
---

 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 8b9849d412..a5d74ffeed 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -1164,8 +1164,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