[FFmpeg-soc] SVQ3 depacketizer

Ronald S. Bultje rsbultje at gmail.com
Thu Jul 1 16:50:55 CEST 2010


Hi,

On Wed, Jun 30, 2010 at 11:01 PM, Josh Allmann <joshua.allmann at gmail.com> wrote:
[..]
> @@ -893,7 +893,10 @@ int url_open_dyn_packet_buf(ByteIOContext **s, int max_packet_size)
>  int url_close_dyn_buf(ByteIOContext *s, uint8_t **pbuffer)
>  {
>      DynBuffer *d = s->opaque;
> -    int size;
> +    int size, i;
> +
> +    for (i = 0; i < FF_INPUT_BUFFER_PADDING_SIZE; i++)
> +        put_byte(s, 0);
>
>      put_flush_packet(s);

static const padbuf[FF_INPUT_BUFFER_PADDING_SIZE] = { 0 };
put_buffer(s, padbuf, sizeof(padbuf));

Ronald


More information about the FFmpeg-soc mailing list