[libav-bugs] [Bug 922] New: image2 demuxer -start_number does not allow a avlue

bugzilla at libav.org bugzilla at libav.org
Thu Feb 4 01:03:08 CET 2016


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

            Bug ID: 922
           Summary: image2 demuxer -start_number does not allow a avlue
           Product: Libav
           Version: git HEAD
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: ---
         Component: libavformat
          Assignee: bugzilla at libav.org
          Reporter: libav at spamwagon.com

https://git.libav.org/?p=libav.git;a=blob;f=libavformat/img2dec.c;h=ec3a829532924e61c42d835afda70468ff6c1233;hb=HEAD

The structure:
    static const AVOption options[]
Has the minimum allowed value for start_number set to 1.  However, it's valid
to have images that start at an index of zero (img000.jpg, img001.jpg, etc). 
The find_image_range() function starts looking at first_index = 0, and will
succeed and process frame #0.  If you try to provide "-start_number 0" to
avconv, you'll be met with an error.  Zero should be allowed as a valid entry.


Separately, it looks like find_image_range() will fail if the first image is
numbered 5 (line 92-93).  That's odd, shouldn't that be allowed? Unless that
==5 check was meant to be first_index == max_start?

-- 
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/20160204/257a9529/attachment.html>


More information about the libav-bugs mailing list