[vlc-commits] [Git][videolan/vlc][master] mux: avi: fix HDRL length

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Mon Jul 18 09:15:41 UTC 2022



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
0e1fbc77 by Tun Fenng at 2022-07-18T08:43:21+00: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>

- - - - -


1 changed file:

- modules/mux/avi.c


Changes:

=====================================
modules/mux/avi.c
=====================================
@@ -910,7 +910,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/0e1fbc77fe55dd763d5a7767b09e596c5a7d7989

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0e1fbc77fe55dd763d5a7767b09e596c5a7d7989
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