[prev in list] [next in list] [prev in thread] [next in thread] 

List:       theora
Subject:    [Theora] problem with theora files inside container
From:       giles () xiph ! org (Ralph Giles)
Date:       2005-08-16 15:13:25
Message-ID: 20050816221322.GA3638 () ghostscript ! com
[Download RAW message or body]

On Tue, Aug 16, 2005 at 10:48:33PM +0200, David Kment wrote:

> i added those 2 lines to buffer_data() in the splayer code:
> totalBytesRead += bytes; // new global variable
> if(totalBytesRead >= myVirtualFilesSize) {bytes = 0;}

You should also trim the number of bytes you try to read (always 4096 in 
the current implementation) at the end of the file. e.g. to 

  MAX(myVirtualFileSize - totalBytesRead, 4096)

to avoid passing unrelated data on the last read.

Glad you got it working,
 -r

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic