[Ffmpeg-devel] [BUG] put bit problem

Reimar Döffinger Reimar.Doeffinger
Sat Mar 3 13:13:53 CET 2007


Hello,
On Sat, Mar 03, 2007 at 12:28:39PM +0100, Benjamin Larsson wrote:
> Hi, I'm using this code to pack some bits.
> 
>         PutBitContext pb;
>         GetBitContext gb;
>         init_put_bits(&pb, dst, buf_size*8);
>         init_get_bits(&gb, dst, buf_size*8);

Regardless of whether it might work, this is stupid since you are
calling init_get_bits on uninitialized memory.

Greetings,
Reimar D?ffinger




More information about the ffmpeg-devel mailing list