List Info

Thread: missing seqno setting in rtp.c::ast_rtp_read()




missing seqno setting in rtp.c::ast_rtp_read()
country flaguser name
United States
2007-07-24 14:15:07
during some experiments adding video to chan_oss/chan_alsa,
(which btw is in good shape - we can display video from
linphone using h263p, with just a smallish patch and
the addition of ffmpeg and SDL libraries)
a student of mine found out that the statement

               rtp->f.seqno = seqno;
 
in ast_rtp_read() is done only for audio frames.
We think it is useful if not necessary for video as well,
and given that there is room in the struct header, why
don't keep the info unconditionally also for other frame
types ?

I'd be tempted to move the assignment before the test for
audio/video/other frames.

Comments anyone ?

	cheers
	luigi

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Re: missing seqno setting in rtp.c::ast_rtp_read()
country flaguser name
United States
2007-07-24 15:53:45
Luigi Rizzo wrote:
>                rtp->f.seqno = seqno;
>  
> in ast_rtp_read() is done only for audio frames.
> We think it is useful if not necessary for video as
well,
> and given that there is room in the struct header, why
> don't keep the info unconditionally also for other
frame types ?
> 
> I'd be tempted to move the assignment before the test
for
> audio/video/other frames.

It sounds like a valid bug to me.  Media types other than
audio really just 
haven't been nearly as stressed and used as the code for
handling audio has been.

-- 
Russell Bryant
Software Engineer
Digium, Inc.

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.c
om--

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )