Samples - Clean up and bug fixes (#203)

* clean up samples

* fixes error seen in videoDecodeMem app with big files
This commit is contained in:
Lakshmi Kumar
2024-01-29 09:58:00 -08:00
committad av GitHub
förälder 6bd8509bec
incheckning 43481ce36b
4 ändrade filer med 23 tillägg och 13 borttagningar
+1 -1
Visa fil
@@ -233,7 +233,7 @@ AVFormatContext *VideoDemuxer::CreateFmtContextUtil(StreamProvider *stream_provi
return nullptr;
}
uint8_t *avioc_buffer = nullptr;
int avioc_buffer_size = 10 * 1024 * 1024;
int avioc_buffer_size = 100 * 1024 * 1024;
avioc_buffer = (uint8_t *)av_malloc(avioc_buffer_size);
if (!avioc_buffer) {
std::cerr << "ERROR: av_malloc failed!" << std::endl;