[FFmpeg-devel] [PATCH] Musepack SV8 demuxer and decoder

Michael Niedermayer michaelni
Wed Nov 7 03:34:19 CET 2007


On Mon, Nov 05, 2007 at 09:06:40AM +0200, Kostya wrote:
> On Mon, Nov 05, 2007 at 02:10:06AM +0100, Michael Niedermayer wrote:
> > On Sun, Nov 04, 2007 at 04:47:46PM +0200, Kostya wrote:
> [...]
> > > > still theres no sense or need for realloc() and memcpy()
> > > 
> > > Removed
> > 
> > [...]
> > > +        c->bits = av_realloc(c->bits, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
> > > +        memcpy(c->bits, buf, buf_size);
> > 
> > doesnt seem so
> 
> Oops, removed dependency but forgot to remove actual code.

[...]
> +    c->last_bits_used = bits_used = get_bits_count(gb);
> +    if(c->cur_frame >= c->frames)
> +        c->cur_frame = 0;
> +    *data_size =  MPC_FRAME_SIZE * 4;
> +
> +    return c->cur_frame ? bits_used >> 3 : buf_size;

bits_used seems a little redundant, c->last_bits_used could be used


[...]

except that patch looks ok

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20071107/891b8ba2/attachment.pgp>



More information about the ffmpeg-devel mailing list