[vlc-commits] [Git][videolan/vlc][master] packetizer_helper: add missing alloc check

Steve Lhomme (@robUx4) gitlab at videolan.org
Thu Jan 25 06:56:37 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
07d50a2b by François Cartegnie at 2024-01-25T06:38:28+00:00
packetizer_helper: add missing alloc check

- - - - -


1 changed file:

- modules/packetizer/packetizer_helper.h


Changes:

=====================================
modules/packetizer/packetizer_helper.h
=====================================
@@ -181,6 +181,11 @@ static block_t *packetizer_PacketizeBlock( packetizer_t *p_pack, block_t **pp_bl
             block_t *p_block_bytestream = p_pack->bytestream.p_block;
 
             p_pic = block_Alloc( p_pack->i_offset + p_pack->i_au_prepend );
+            if( p_pic == NULL )
+            {
+                p_pack->i_state = STATE_NOSYNC;
+                return NULL;
+            }
             p_pic->i_pts = p_block_bytestream->i_pts;
             p_pic->i_dts = p_block_bytestream->i_dts;
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/07d50a2b39280d777d8dcbc8cffaca236f06da8a
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