| 1 | *** ./libavcodec_libtheoraenc_patch.c 2011-06-20 17:01:57.000000000 +0400 |
|---|
| 2 | --- ./libavcodec_libtheoraenc.c 2011-06-20 17:03:31.000000000 +0400 |
|---|
| 3 | *************** |
|---|
| 4 | *** 206,212 **** |
|---|
| 5 | t_info.quality = av_clip(avc_context->global_quality / (float)FF_QP2LAMBDA, 0, 10) * 6.3; |
|---|
| 6 | t_info.target_bitrate = 0; |
|---|
| 7 | } else { |
|---|
| 8 | ! t_info.target_bitrate = avc_context->bit_rate; |
|---|
| 9 | t_info.quality = 0; |
|---|
| 10 | } |
|---|
| 11 | |
|---|
| 12 | --- 206,217 ---- |
|---|
| 13 | t_info.quality = av_clip(avc_context->global_quality / (float)FF_QP2LAMBDA, 0, 10) * 6.3; |
|---|
| 14 | t_info.target_bitrate = 0; |
|---|
| 15 | } else { |
|---|
| 16 | ! /*Account for the Ogg page overhead. |
|---|
| 17 | ! This is 1 byte per 255 for lacing values, plus 26 bytes per 4096 bytes for |
|---|
| 18 | ! the page header, plus approximately 1/2 byte per packet (not accounted for |
|---|
| 19 | ! here). |
|---|
| 20 | ! */ |
|---|
| 21 | ! t_info.target_bitrate = (int) (64870 * (ogg_int64_t)avc_context->bit_rate >> 16); |
|---|
| 22 | t_info.quality = 0; |
|---|
| 23 | } |
|---|
| 24 | |
|---|