[vlc-devel] [PATCH 7/7] mux/ogg: Don't use granulepos = UINT64_MAX on EOS page

Laurent Aimar fenrir at via.ecp.fr
Sat Nov 29 11:17:55 CET 2008


On Thu, Nov 27, 2008, davidf+nntp at woaf.net wrote:
> From: David Flynn <davidf at rd.bbc.co.uk>
> 
> It isn't legal for granulepos to be UINT64_MAX on an EOS page since
> this special value indicates that no packets finish on the page, yet
> an EOS page signifies that the final packet does finish on the page.
> 
> It seems that there is a convention for repeating the last used
> granulepos in the EOS page per logical stream.  This then allows
> some extra file size hints (duration = last gp - first gp) [1]
> 
> [1] This is flawed -- EOS may occur anywhere, however this is what
> some people do.

Merged by [85dd1a0b762517a9c6f1c721c30bdce233c25dd0], thanks.

-- 
fenrir



More information about the vlc-devel mailing list