AVIO_FLAG_DIRECT does not work
|Reported by:||str||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
I want to reduce buffering overhead when using avio_open2/av_write_frame API.
How to reproduce:
avio_open2(formatContext->pb, "test.avi", AVIO_FLAG_WRITE | AVIO_FLAG_DIRECT, 0, 0); av_write_frame(formatContext, avPacket); //return -5 if avpack.size > 262144 I found that is due to line 241 in file.c where this value is set. In line 425 in file avio.c is this value compared to input size and fails if size > 262144. Is there any way to workaround this? ffmpeg version built on 4.3.1