<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 - avresample_buffer() input buffer should reassure caller read only"
   href="https://bugzilla.libav.org/show_bug.cgi?id=916">916</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>avresample_buffer() input buffer should reassure caller read only
          </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>All
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>libavresample
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>kip@thevertigo.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=571" name="attach_571" title="Patch to ensure avresample_buffer() caller's input buffer will not be modified.">attachment 571</a> <a href="attachment.cgi?id=571&action=edit" title="Patch to ensure avresample_buffer() caller's input buffer will not be modified.">[details]</a></span>
Patch to ensure avresample_buffer() caller's input buffer will not be modified.

Although the task of patching all of libav for const correctness is beyond my
time at present, the attached is small patch to at least allow libav client
code to compile cleanly when calling avresample_buffer() with an input buffer
it needs to be reassured will not be modified.

>From what I could see, the changes needed were only minor syntactical, so I
hope there wasn't something more fundamental / deeper why avresample_convert()
could potentially need to tamper with the input buffer (e.g. dependent
ff_audio_data_init's read_only parameter?).</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>