[FFmpeg-devel] [PATCH]Basic XSUB encoder (take 3)

Reimar Döffinger Reimar.Doeffinger
Thu Feb 5 15:48:52 CET 2009


On Thu, Feb 05, 2009 at 03:19:48PM +0100, Michael Niedermayer wrote:
> On Thu, Feb 05, 2009 at 09:33:48AM +0100, Reimar D?ffinger wrote:
> [...]
> > I was also wondering (in case anyone else is reading this), how about a
> > put_bits_free function that returns how many bits still fit into the
> > given context?
> 
> i am in favor of adding a size_in_bits field like in getbits
> then pb->size_in_bits - put_bits_count(&pb) will give you the remaining
> space

The reason I don't like it too much is because the put_bits size is
specified everywhere only in bytes, but it would still be better than
the current situation I think.




More information about the ffmpeg-devel mailing list