<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 - (Fix attached) MPEG-TS demuxing degrades when PAT arrives while reading PMT"
   href="https://bugzilla.libav.org/show_bug.cgi?id=851">851</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>(Fix attached) MPEG-TS demuxing degrades when PAT arrives while reading PMT
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Other
          </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>libavformat
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>john.hogberg@ericsson.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=532" name="attach_532" title="A diff with a proposed fix.">attachment 532</a> <a href="attachment.cgi?id=532&action=edit" title="A diff with a proposed fix.">[details]</a></span>
A diff with a proposed fix.

Currently, whenever a PAT is handled it closes the current PMT filter and opens
a new one, discarding whatever data had been received by that filter. 

Usually this is not a problem but I've noticed that libav has a very hard time
dealing with streams produced by multiplexers that consistently place a PAT
right in the middle of PMT payload. They still work but libav degrades to
probing the stream, making stream metadata unavailable and sometimes mistaking
DVB subtitles for ... MP3 audio.

I've attached a diff (from HEAD as of writing) that fixes the bug through
limiting PAT updates to when the version field changes, instead of doing it
every time they arrive.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>