id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
288	Theora encode bitrate bug.	igor		"In ./libavcodec/libtheoraenc.c:


{{{
t_info.target_bitrate = avc_context->bit_rate;
}}}


It's wrong!

Right way is:
From ffmpeg2theora (http://svn.xiph.org/trunk/ffmpeg2theora/src/ffmpeg2theora.c)
{{{
/*Account for the Ogg page overhead.
              This is 1 byte per 255 for lacing values, plus 26 bytes per 4096 bytes for
               the page header, plus approximately 1/2 byte per packet (not accounted for
               here).
         */
t_info.target_bitrate = (int) (64870 * (ogg_int64_t)avc_context->bit_rate >> 16);
}}}


Attach small path"	defect	closed	normal	avcodec		worksforme					0	0
