demux: AVI insert packetizer for XVID MPEG-4 video
authorMangal Kushwah <mangalk2324@gmail.com>
Thu, 8 Aug 2024 16:00:19 +0000 (21:30 +0530)
committerSebastian Ramacher <sramacher@debian.org>
Tue, 14 Jan 2025 22:09:47 +0000 (23:09 +0100)
Older DivX-encoded videos commonly use an method called packed
bitstream which puts several video frames into a single AVI chunk.
Since Packed bitstream isn't standard MPEG-4 it causes playback issues
with some hw decoders.

(cherry picked from commit 980e4d7449e9e06bef525d9049dff5b9b5ecd673)

Gbp-Pq: Name 0024-demux-AVI-insert-packetizer-for-XVID-MPEG-4-video.patch

modules/demux/avi/avi.c

index 7059ca96f22c64723b39eb952032c40a2726b602..bcc3511e013b67f7d66031d0533f6f3f348ddab5 100644 (file)
@@ -719,6 +719,7 @@ static int Open( vlc_object_t * p_this )
                     {
                         tk->fmt.i_codec           =
                         tk->fmt.i_original_fourcc = VLC_FOURCC( 'X', 'V', 'I', 'D' );
+                        tk->fmt.b_packetized = false;
                     }
 
                     /* Shitty files storing chroma in biCompression */