Static cast the buffer size

This commit is contained in:
sukibaby
2025-06-03 16:30:35 -07:00
committed by teejusb
parent 94d1bb9e99
commit d65140c6fd
@@ -535,7 +535,7 @@ RString MovieDecoder_FFMpeg::Open(RString file)
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_format_context_->pb = av_io_context_;