[FFmpeg-devel] [PATCH] RTSP alternate protocol 2-3/3

Ronald S. Bultje rsbultje
Wed Mar 19 03:24:43 CET 2008


Hi,

On Tue, Mar 18, 2008 at 10:14 PM, Michael Niedermayer <michaelni at gmx.at>
wrote:

> > @@ -1001,6 +1005,10 @@
> >      return 0;
> >
> >  fail:
> > +    if (i < rt->nb_rtsp_streams && rtsp_st->rtp_handle) {
>
> how can i >= rt->nb_rtsp_stream be here ?<https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel>


That's just for thew theoretical case that it's zero, in that case rtsp_st
is unassigned and could segfault, this prevents that. Not sure if it can
actually happen...

Ronald




More information about the ffmpeg-devel mailing list