<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
--></style><title>Re: [Live-devel] Try-catch in
parsers</title></head><body>
<blockquote type="cite" cite><font face="Arial" size="-1">1.Why the
parsers in the Live libarary are working with try and
catch?</font></blockquote>
<div><br></div>
<div>When a parser runs into the end of its input buffer (which could
happen anywhere within the parsing code), it needs to temporarily stop
parsing, request new input data, and then return to the event loop.
C++ language exceptions were a good way to do this in the code.</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite><font face="Arial" size="-1">2. If I am
implementing DeviceSouce which deliver H264 nals threw socket (as you
recommended), how should I know which nal is the last NAL fo the
AccessUnit (last nal in frame)?</font></blockquote>
<div><br></div>
<div>I don't know, but presumably your encoder has this information
(somehow).</div>
<x-sigsep><pre>--
</pre></x-sigsep>
<div><br>
Ross Finlayson<br>
Live Networks, Inc.<br>
http://www.live555.com/</div>
</body>
</html>