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

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


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri May  3 11:15:54 2019 +0200| [49085d497605a674805dd8390a75b8cc4175ed6f] | committer: Francois Cartegnie

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

(cherry picked from commit 25828389824907fe55e4f124b08516a58b3e3ce8)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=49085d497605a674805dd8390a75b8cc4175ed6f
---

 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 816826bf46..c806edf796 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