[FFmpeg-devel] [PATCH 2/4] Add support for two pass encoding in libtheora
Diego Biurrun
diego
Sun Nov 22 11:59:15 CET 2009
On Sat, Nov 21, 2009 at 11:58:47PM -0500, David Conrad wrote:
>
> --- a/libavcodec/libtheoraenc.c
> +++ b/libavcodec/libtheoraenc.c
> @@ -78,6 +82,61 @@ static int concatenate_packet(unsigned int* offset,
> + h->stats_size = strlen(avctx->stats_in) * 3/4;
> + h->stats = av_malloc(h->stats_size);
> + h->stats_size = av_base64_decode(h->stats, avctx->stats_in, h->stats_size);
This could be aligned.
> + bytes = th_encode_ctl(h->t_state, TH_ENCCTL_2PASS_IN,
> + h->stats + h->stats_offset, h->stats_size - h->stats_offset);
Alignment is off.
Diego
More information about the ffmpeg-devel
mailing list