[vlc-commits] [Git][videolan/vlc][master] demux: mkv: throw when the codec private cannot be allocated

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Nov 27 10:19:57 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
d336afd0 by Steve Lhomme at 2026-11-27T08:10:05+00:00
demux: mkv: throw when the codec private cannot be allocated

The track won't be usable.

- - - - -


1 changed file:

- modules/demux/mkv/matroska_segment_parse.cpp


Changes:

=====================================
modules/demux/mkv/matroska_segment_parse.cpp
=====================================
@@ -439,6 +439,8 @@ void matroska_segment_c::ParseTrackEntry( const KaxTrackEntry *m )
                 if( likely( vars.tk->p_extra_data ) )
                     memcpy( vars.tk->p_extra_data, cpriv.GetBuffer(),
                             vars.tk->i_extra_data );
+                else
+                    throw std::bad_alloc{};
             }
             debug( vars, "Track CodecPrivate size=%" PRId64, cpriv.GetSize() );
         }



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/d336afd05f480af79576ac8107d86054f2d2de84
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list