[Mplayer-cvslog] CVS: main/libmpdemux demux_ogg.c,1.40,1.41

Torinthiel torinthiel at wp.pl
Mon Dec 8 14:58:27 CET 2003


On Mon, Dec 08, 2003 at 12:12:04PM +0100, Alex Beregszaszi wrote:
> Update of /cvsroot/mplayer/main/libmpdemux
> In directory mail:/var/tmp.root/cvs-serv22749
> 
> Modified Files:
> 	demux_ogg.c 
> Log Message:
> 1000l
> 
> Index: demux_ogg.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libmpdemux/demux_ogg.c,v
> retrieving revision 1.40
> retrieving revision 1.41
> diff -u -r1.40 -r1.41
> --- demux_ogg.c	8 Dec 2003 09:51:10 -0000	1.40
> +++ demux_ogg.c	8 Dec 2003 11:11:32 -0000	1.41
> @@ -1225,8 +1226,7 @@
>      switch(cmd) {
>  	case DEMUXER_CTRL_GET_TIME_LENGTH:
>  	    if (ogg_d->final_granulepos<=0) return DEMUXER_CTRL_DONTKNOW;
> -        unsigned long length = ogg_d->final_granulepos / rate;
> -	    *((unsigned long *)arg)=length;
> +	    *((unsigned long *)arg)=ogg_d->final_granulepos / rate;
Why is it 1000l? Ok, it's unnececary memory wasting and so on (the
compiler probably will allocate some nontheless ;), but I see no mistake
here.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)wp(dot)pl
   gpg: B06901F1 fpr: FAA3 559F CAE9 34DE CDC8  7346 2B6E 39F2 B069 01F1
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-cvslog/attachments/20031208/571e4d09/attachment.pgp>


More information about the MPlayer-cvslog mailing list