
On Sun, Feb 12, 2006 at 07:04:31PM +0100, Michael Niedermayer wrote:
On Sun, Feb 12, 2006 at 07:37:55PM +0200, Oded Shimon wrote:
Anyway, the only thing I'm kind of worried about is how to put this in spec. Just have 2 fixed codes in the stream header, for keyframes and for non keyframes?... Also, do ALL frames get it, or can it be flagged off?
dunno, but we might even add it into the framecode table so each framecode could have a different "prefix" * no flag needed * fully optional on the muxer side * still as easy for the demuxer as if its in the stream header * theoretically lower overhead / more flexible
Yeah, I was thinking same thing, only reason I wanted to avoid it is that it's just slightly unfriendly to C - dynamic array for any possible prefixes in stream header.. But that's just a slight implementation issue. Ok, here's my proposed patch... Note that data_size does NOT include the length of prefix, because it would make all stream headers essential to demux nut file. - ods15