[vlc-commits] [Git][videolan/vlc][master] 2 commits: demux: AVI insert packetizer for XVID MPEG-4 video

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Aug 20 05:09:14 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
980e4d74 by Mangal Kushwah at 2024-08-20T04:55:59+00:00
demux: AVI insert packetizer for XVID MPEG-4 video

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.

- - - - -
a9343f68 by Mangal Kushwah at 2024-08-20T04:55:59+00:00
codec: videotoolbox: remove sw decoder fallback for mp4v

commit 7a2bf498d545d500d30636970fa930eb54de5569 insert packetizer for
xvid mpeg4 video, so now hw decoder can decode xvid encoded video
without any playback issues.

- - - - -


2 changed files:

- modules/codec/videotoolbox/decoder.c
- modules/demux/avi/avi.c


Changes:

=====================================
modules/codec/videotoolbox/decoder.c
=====================================
@@ -931,11 +931,6 @@ static CMVideoCodecType CodecPrecheck(decoder_t *p_dec)
 
         case VLC_CODEC_MP4V:
         {
-            if (p_dec->fmt_in->i_original_fourcc == VLC_FOURCC( 'X','V','I','D' )) {
-                msg_Warn(p_dec, "XVID decoding not implemented, fallback on software");
-                return 0;
-            }
-
             msg_Dbg(p_dec, "Will decode MP4V with original FourCC '%4.4s'", (char *)&p_dec->fmt_in->i_original_fourcc);
             return kCMVideoCodecType_MPEG4Video;
         }


=====================================
modules/demux/avi/avi.c
=====================================
@@ -683,6 +683,7 @@ static int Open( vlc_object_t * p_this )
                 {
                     tk->fmt.i_codec           =
                     tk->fmt.i_original_fourcc = FOURCC_XVID;
+                    tk->fmt.b_packetized = false;
                 }
 
                 if( IsQNAPCodec( p_vids->p_bih->biCompression ) )



View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/feb88734eb114cfb4057235d7672a74a5793901b...a9343f68bb19a1c20e45e1029848326020b0c69e

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/feb88734eb114cfb4057235d7672a74a5793901b...a9343f68bb19a1c20e45e1029848326020b0c69e
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