[Ffmpeg-cvslog] r7537 - trunk/libavformat/avidec.c

Måns Rullgård mru
Tue Jan 16 00:11:34 CET 2007


michael <subversion at mplayerhq.hu> writes:

> Author: michael
> Date: Mon Jan 15 23:56:46 2007
> New Revision: 7537
>
> Modified:
>    trunk/libavformat/avidec.c
>
> Log:
> fixing segfault with http://sam.zoy.org/zzuf/lol-ffplay.avi
>
> Modified: trunk/libavformat/avidec.c
> ==============================================================================
> --- trunk/libavformat/avidec.c	(original)
> +++ trunk/libavformat/avidec.c	Mon Jan 15 23:56:46 2007
> @@ -397,7 +397,7 @@
>              break;
>          case MKTAG('s', 't', 'r', 'f'):
>              /* stream header */
> -            if (stream_index >= s->nb_streams || avi->dv_demux) {
> +            if (stream_index >= (unsigned)s->nb_streams || avi->dv_demux) {

Is there any reason AVFormatContext.nb_streams is signed in the first
place?

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-cvslog mailing list