[FFmpeg-devel] [PATCH] add timeout to udp_read

Michael Niedermayer michaelni
Mon Nov 16 01:18:08 CET 2009


On Mon, Nov 16, 2009 at 01:00:57AM +0100, Stefano Sabatini wrote:
[...]
> Please make more clear this sentence.

Please, more clear this sentance make as well.


> 
> >  @section While playing
> > Index: ffplay.c
> > ===================================================================
> > --- ffplay.c	(revision 20541)
> > +++ ffplay.c	(working copy)
> > @@ -1864,9 +1864,16 @@
> >  /* since we have only one decoding thread, we can use a global
> >     variable instead of a thread local variable */
> >  static VideoState *global_video_state;
> > +static int64_t reference_time = 0;
> > +static uint64_t timeout_network = UINT64_MAX;
> >  
> >  static int decode_interrupt_cb(void)
> >  {
> > +    if (reference_time && (av_gettime() - reference_time) / 1000 > timeout_network) {
> > +        fprintf(stderr, "Timeout for receiving network stream expired after %llu msec\n",
> > +                (av_gettime() - reference_time) / 1000);
> 
> msec is ambiguous, please specify milliseconds or microseconds.

m is milli, u is micro in ascii, that said ive nothing againt clarifying it
it just doesnt feel ambiguous to me

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Awnsering whenever a program halts or runs forever is
On a turing machine, in general impossible (turings halting problem).
On any real computer, always possible as a real computer has a finite number
of states N, and will either halt in less than N cycles or never halt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091116/bb6c19b6/attachment.pgp>



More information about the ffmpeg-devel mailing list