Use `vlc_fourcc_GetCodec` to map XVID to MP4V
authorMangal Kushwah <mangalk2324@gmail.com>
Sat, 31 Aug 2024 11:15:07 +0000 (16:45 +0530)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 21 Jan 2025 18:02:47 +0000 (19:02 +0100)
Gbp-Pq: Name 0026-Use-vlc_fourcc_GetCodec-to-map-XVID-to-MP4V.patch

modules/demux/avi/avi.c

index bcc3511e013b67f7d66031d0533f6f3f348ddab5..a3204ea204973eaf06b486316a29edd5d55d9779 100644 (file)
@@ -713,7 +713,7 @@ static int Open( vlc_object_t * p_this )
                 }
                 else
                 {
-                    tk->fmt.i_codec = p_bih->biCompression;
+                    tk->fmt.i_codec = vlc_fourcc_GetCodec(VIDEO_ES, p_bih->biCompression);
                     if( tk->fmt.i_codec == VLC_CODEC_MP4V &&
                         !strncasecmp( (char*)&p_strh->i_handler, "XVID", 4 ) )
                     {