Static cast the buffer size

This commit is contained in:
sukibaby
2025-06-04 18:26:04 -07:00
committed by teejusb
parent 94d1bb9e99
commit d65140c6fd
@@ -535,7 +535,7 @@ RString MovieDecoder_FFMpeg::Open(RString file)
return error; return error;
} }
av_buffer_ = (unsigned char*)(avcodec::av_malloc(kFFMpegBufferSize)); av_buffer_ = static_cast<unsigned char*>(avcodec::av_malloc(kFFMpegBufferSize));
av_io_context_ = avcodec::avio_alloc_context(av_buffer_, kFFMpegBufferSize, 0, f, AVIORageFile_ReadPacket, nullptr, AVIORageFile_Seek); av_io_context_ = avcodec::avio_alloc_context(av_buffer_, kFFMpegBufferSize, 0, f, AVIORageFile_ReadPacket, nullptr, AVIORageFile_Seek);
av_format_context_->pb = av_io_context_; av_format_context_->pb = av_io_context_;