[vlc-commits] [Git][videolan/vlc][master] demux: avi: store original fourcc for SpeedHQ codec variant detection

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Mar 31 08:25:02 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
61017654 by Ahmed Sobhy at 2026-03-31T05:49:57+00:00
demux: avi: store original fourcc for SpeedHQ codec variant detection
SpeedHQ videos with different variants were being incorrectly decoded because all variants map to the same internal codec identifier (VLC_CODEC_SPEEDHQ). The decoder needs the original fourcc from biCompression to distinguish between codecs. So the fix stores the original fourcc for SpeedHQ codecs when it hasn't been set yet

- - - - -


1 changed file:

- modules/demux/avi/avi.c


Changes:

=====================================
modules/demux/avi/avi.c
=====================================
@@ -703,6 +703,12 @@ static int Open( vlc_object_t * p_this )
                     tk->fmt.i_original_fourcc = VLC_FOURCC('a','v','c','1');
                 }
 
+                /* Store original fourcc for SpeedHQ variants so decoder can distinguish between them */
+                if( tk->fmt.i_codec == VLC_CODEC_SPEEDHQ && tk->fmt.i_original_fourcc == 0 )
+                {
+                    tk->fmt.i_original_fourcc = p_vids->p_bih->biCompression;
+                }
+
                 tk->i_samplesize = 0;
                 tk->fmt.video.i_frame_rate = tk->i_rate;
                 tk->fmt.video.i_frame_rate_base = tk->i_scale;



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

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




More information about the vlc-commits mailing list