diff options
author | Vincent <vinsteimes@gmail.com> | 2021-11-30 18:02:42 +0100 |
---|---|---|
committer | Vincent <vinsteimes@gmail.com> | 2021-12-01 14:30:38 +0100 |
commit | 2d0068d1cb658d6b600fdc3f9ae02fe56338297c (patch) | |
tree | 3ff71c7e6c3d9c540b9a74a801f63a620dd2d326 /modules/minimp3/audio_stream_mp3.h | |
parent | 56f73a7e294972ddabbada46fc75f3f7ef8ca36f (diff) | |
download | redot-engine-2d0068d1cb658d6b600fdc3f9ae02fe56338297c.tar.gz |
Fix crash when loading an invalid mp3 file
Diffstat (limited to 'modules/minimp3/audio_stream_mp3.h')
-rw-r--r-- | modules/minimp3/audio_stream_mp3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/minimp3/audio_stream_mp3.h b/modules/minimp3/audio_stream_mp3.h index 3c8bdd8c53..e3adfe683b 100644 --- a/modules/minimp3/audio_stream_mp3.h +++ b/modules/minimp3/audio_stream_mp3.h @@ -75,7 +75,7 @@ class AudioStreamMP3 : public AudioStream { friend class AudioStreamPlaybackMP3; - void *data = nullptr; + PackedByteArray data; uint32_t data_len = 0; float sample_rate = 1.0; |