<html>
    <head>
      <base href="https://bugzilla.libav.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - image2 demuxer -start_number does not allow a avlue"
   href="https://bugzilla.libav.org/show_bug.cgi?id=922">922</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>image2 demuxer -start_number does not allow a avlue
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Libav
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>git HEAD
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>minor
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>---
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>libavformat
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>bugzilla@libav.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>libav@spamwagon.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre><a href="https://git.libav.org/?p=libav.git;a=blob;f=libavformat/img2dec.c;h=ec3a829532924e61c42d835afda70468ff6c1233;hb=HEAD">https://git.libav.org/?p=libav.git;a=blob;f=libavformat/img2dec.c;h=ec3a829532924e61c42d835afda70468ff6c1233;hb=HEAD</a>

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?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>