[vlc-devel] commit: http: fix Content-Length and stream closure issues. (Bill C. Riemers )

Ilkka Ollakka ilkka.ollakka+vlc at oamk.fi
Mon Jun 23 21:34:18 CEST 2008


On su 22. kesäkuuta 2008 19:29:09, git version control wrote:
> vlc | branch: master | Bill C. Riemers <briemers+git at redhat.com> | Fri Jun 20 20:47:51 2008 -0400| [2c16687563b6e6096f5621db56917d9ef05424b2]
> 
> +            int64_t i_nend = (p_access->info.i_size > 0)?(p_access->info.i_size - 1):i_tell;
> +            int64_t i_nsize = p_access->info.i_size;
> +            sscanf(p,"bytes %"PRId64"-%"PRId64"/%"PRId64,&i_ntell,&i_nend,&i_nsize);
> +            if(i_nend > i_ntell ) {
> +                p_access->info.i_pos = i_ntell;
> +                p_sys->i_remaining = i_nend+1-i_ntell;
> +                int64_t i_size = (i_nsize > i_nend) ? i_nsize : (i_nend + 1);

is that i_nend + 1 correct there? I get invalid ranges with it when
playing mp4-files.

> +                if(i_size > p_access->info.i_size) {
> +                    p_access->info.i_size = i_size;
> +                }
> +                msg_Dbg( p_access, "stream size=%"PRId64",pos=%"PRId64",remaining=%"PRId64,i_nsize,i_ntell,p_sys->i_remaining);


-- 
Ilkka Ollakka
The problem with any unwritten law is that you don't know where to go
to erase it.
		-- Glaser and Way
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20080623/f3899cd3/attachment.sig>


More information about the vlc-devel mailing list