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

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sat Apr 4 18:00:31 UTC 2026



Felix Paul Kühne pushed to branch 3.0.x at VideoLAN / VLC


Commits:
84176e04 by Ahmed Sobhy at 2026-04-04T19:47:09+02: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

(cherry picked from commit 610176541bfb54aa09520b679b24ff165de1991d)

- - - - -


1 changed file:

- modules/demux/avi/avi.c


Changes:

=====================================
modules/demux/avi/avi.c
=====================================
@@ -743,6 +743,11 @@ 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_bih->biCompression;
+                }
                 tk->i_samplesize = 0;
 
                 tk->fmt.video.i_visible_width =



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

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




More information about the vlc-commits mailing list