[vlc-commits] [Git][videolan/vlc][3.0.x] mux: avi: fix HDRL length

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Jul 20 07:16:14 UTC 2022



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
e41f0913 by Tun Fenng at 2022-07-18T20:20:24+03:00
mux: avi: fix HDRL length

AVI files recorded by vlc cannot be played in Windows Media Player
because the HDRL length is calculated by 4 bytes more.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 0e1fbc77fe55dd763d5a7767b09e596c5a7d7989)

- - - - -


1 changed file:

- modules/mux/avi.c


Changes:

=====================================
modules/mux/avi.c
=====================================
@@ -904,7 +904,7 @@ static block_t *avi_HeaderCreateRIFF( sout_mux_t *p_mux )
 
     /* Now set hdrl size */
     bo_set_32le( &bo, offsets.i_hdrllistsize,
-                 bo.b->i_buffer - offsets.i_hdrldatastart );
+                 bo.b->i_buffer + 4 - offsets.i_hdrldatastart );
 
     avi_HeaderAdd_INFO( p_mux, &bo );
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e41f0913ef155072a35d87d4c6b3eb6a1270e835

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e41f0913ef155072a35d87d4c6b3eb6a1270e835
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list