Skip to content

Commit

Permalink
add a cast to satisfy extra picky gcc 14 (fixes #474)
Browse files Browse the repository at this point in the history
  • Loading branch information
treellama committed Apr 30, 2024
1 parent 51ba75c commit e7315e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source_Files/FFmpeg/SDL_ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1747,7 +1747,7 @@ SDL_ffmpegStream* SDL_ffmpegAddAudioStream( SDL_ffmpegFile *file, SDL_ffmpegCode

str->sampleBufferSize = av_samples_get_buffer_size(0, stream->codecpar->channels, stream->codecpar->frame_size, AV_SAMPLE_FMT_FLT, 0);

if (av_samples_alloc(&str->sampleBuffer, 0, stream->codecpar->channels, stream->codecpar->frame_size, AV_SAMPLE_FMT_FLT, 0) < 0)
if (av_samples_alloc((uint8_t**)(&str->sampleBuffer), 0, stream->codecpar->channels, stream->codecpar->frame_size, AV_SAMPLE_FMT_FLT, 0) < 0)
{
SDL_ffmpegSetError("could not allocate samples for audio buffer");
return 0;
Expand Down Expand Up @@ -2231,4 +2231,4 @@ int SDL_ffmpegDecodeVideoFrame( SDL_ffmpegFile* file, AVPacket *pack, SDL_ffmpeg
/**
\endcond
*/
#endif
#endif

0 comments on commit e7315e5

Please sign in to comment.