[vlc-commits] [Git][videolan/vlc][3.0.x] packetizer: flac: do not require streaminfo in ParseSyncInfo
Steve Lhomme (@robUx4)
gitlab at videolan.org
Tue Apr 14 12:29:27 UTC 2026
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
f60a14fc by Tristan Matthews at 2026-04-14T12:15:35+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
(cherry picked from commit 53d2e260ef82ec1498bfbd9b29599866f145d204)
- - - - -
1 changed file:
- modules/packetizer/flac.h
Changes:
=====================================
modules/packetizer/flac.h
=====================================
@@ -249,7 +249,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/f60a14fc0920467a8a3efff52a590fb548dfd2bc
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f60a14fc0920467a8a3efff52a590fb548dfd2bc
You're receiving this email because of your account on code.videolan.org.
More information about the vlc-commits
mailing list