#8870: How to use AVIO_FLAG_DIRECT
-------------------------------------+-------------------------------------
             Reporter:  str          |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:  git-
  undetermined                       |  master
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8870>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to