[vlc-commits] [Git][videolan/vlc][master] packetizer: flac: do not require streaminfo in ParseSyncInfo
Tristan Matthews (@tmatth)
gitlab at videolan.org
Fri Sep 12 15:40:52 UTC 2025
Tristan Matthews pushed to branch master at VideoLAN / VLC
Commits:
62b8ce43 by Tristan Matthews at 2025-09-12T15:25:13+00:00
packetizer: flac: do not require streaminfo in ParseSyncInfo
Instead, simply skip parsing it if it is NULL.
This is a better fix for https://code.videolan.org/videolan/vlc/-/issues/29283 than
e7396baa09fa844e6ef2efaa91b6ad4cac706fd4
- - - - -
1 changed file:
- modules/packetizer/flac.h
Changes:
=====================================
modules/packetizer/flac.h
=====================================
@@ -246,7 +246,7 @@ static inline int FLAC_ParseSyncInfo(const uint8_t *p_buf, unsigned i_buf,
return 0;
/* Invalid Sample/Frame number */
- if (!stream_info || stream_info->total_samples != 0 && i_fsnumber > stream_info->total_samples)
+ if (stream_info && stream_info->total_samples != 0 && i_fsnumber > stream_info->total_samples)
return 0;
i_header += i_read;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62b8ce43f399979856b4b1f685ce556fb8d04f8c
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/62b8ce43f399979856b4b1f685ce556fb8d04f8c
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