[vlc-commits] [Git][videolan/vlc][master] 2 commits: packetizer: mpeg4: always initialize i_channels/i_rate/i_frame_length
Steve Lhomme (@robUx4)
gitlab at videolan.org
Wed May 20 12:27:11 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
a976accb by Steve Lhomme at 2026-05-20T11:19:15+00:00
packetizer: mpeg4: always initialize i_channels/i_rate/i_frame_length
They are used to determine if the WAVE_FORMAT_MPEG_LOAS is used
since 38733d0685e7d5e7d9bc4ce604a16a9b43fd4ba3.
Fixes #29852
- - - - -
af209b8c by Steve Lhomme at 2026-05-20T11:19:15+00:00
packetizer: mpeg4: only forward the amount of data available
- - - - -
1 changed file:
- modules/packetizer/mpeg4audio.c
Changes:
=====================================
modules/packetizer/mpeg4audio.c
=====================================
@@ -187,6 +187,9 @@ static int OpenPacketizer(vlc_object_t *p_this)
p_sys->i_aac_profile = -1;
p_sys->b_latm_cfg = false;
p_sys->i_warnings = 0;
+ p_sys->i_channels = 0;
+ p_sys->i_rate = 0;
+ p_sys->i_frame_length = 0;
/* Set output properties */
p_dec->fmt_out.i_codec = VLC_CODEC_MP4A;
@@ -813,6 +816,10 @@ static block_t *PacketizeStreamBlock(decoder_t *p_dec, block_t **pp_block)
/* When we reach this point we already know we have enough
* data available. */
+ if (unlikely( block_BytestreamRemaining(&p_sys->bytestream) <
+ p_sys->i_header_size + p_sys->i_frame_size ))
+ return NULL; // need more data
+
p_out_buffer = block_Alloc(p_sys->i_frame_size);
if (!p_out_buffer) {
return NULL;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9b35ac11fb5a712418a6e1c9cf2ef6c5556a7bf5...af209b8c14a9328e1da179bf3bfbde7684010854
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/9b35ac11fb5a712418a6e1c9cf2ef6c5556a7bf5...af209b8c14a9328e1da179bf3bfbde7684010854
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