[libav-bugs] [Bug 865] New: mkv_write_flush_packet returning wrong value

bugzilla at libav.org bugzilla at libav.org
Tue Jun 9 10:17:24 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=865

            Bug ID: 865
           Summary: mkv_write_flush_packet returning wrong value
           Product: Libav
           Version: git HEAD
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: major
          Priority: ---
         Component: libavformat
          Assignee: bugzilla at libav.org
          Reporter: armin.trattnig at bitmovin.net

mkv_write_flush_packet in libavformat/matroskaenc.c returns 0 after flushing. 
This function is called inside av_write_frame, when AVPacket is NULL and the
oformat is flushable. av_write_frame return definition says that it will retrun
"1 if flushed and there is no more data to flush". The function
mkv_write_flush_packet is never able to return 1, it only returns 0 after
flushing. 
Since flushing looks something like this:
while (av_write_frame(this->avOutputFormatContext, NULL) == 0) { }

and when the oformat is matroska, this will result in an endless loop.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150609/51461c33/attachment.html>


More information about the libav-bugs mailing list