<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 - rtsp: noop in parse_rtsp_message interpreted as EOF (unless reply already had an error)"
   href="https://bugzilla.libav.org/show_bug.cgi?id=1103">1103</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>rtsp: noop in parse_rtsp_message interpreted as EOF (unless reply already had an error)
          </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>Linux
          </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>tmatth@videolan.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Not entirely sure that this is a bug, but upon receiving an RTSP OPTIONS
message when using -rtsp_transport udp, both avplay and avconv will call
parse_rtsp_message which returns 0 if no error occured [1].
Further up the call chain in read_packet, this is interpreted as an EOF [2][3],
prompting avplay and avconv to exit, even though media is still being streamed.
Would it make sense to have parse_rtsp_message return something else, or to
otherwise isolate the EOF case from the non-error case?

[1]
<a href="https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l1934">https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l1934</a>
[2]
<a href="https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l2071">https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l2071</a>
[3]
<a href="https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l2087">https://git.libav.org/?p=libav.git;a=blob;f=libavformat/rtsp.c;h=17a25a310ecd2a35125c672d533b0e42a3b7c9a5;hb=HEAD#l2087</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>