Skip to content

Commit

Permalink
Merge commit '167ea1fbf15ecefa30729f9b8d091ed431bf43bd'
Browse files Browse the repository at this point in the history
* commit '167ea1fbf15ecefa30729f9b8d091ed431bf43bd':
  xavs: Do not try to set the bitrate tolerance without a bitrate

Merged-by: Hendrik Leppkes <[email protected]>
  • Loading branch information
Nevcairiel committed Aug 24, 2015
2 parents 0f72dfe + 167ea1f commit 87ee98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/libxavs.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ FF_ENABLE_DEPRECATION_WARNINGS

if (avctx->bit_rate > 0)
x4->params.rc.f_rate_tolerance =
(float)avctx->bit_rate_tolerance/avctx->bit_rate;
(float)avctx->bit_rate_tolerance / avctx->bit_rate;

if ((avctx->rc_buffer_size) &&
(avctx->rc_initial_buffer_occupancy <= avctx->rc_buffer_size)) {
Expand Down

0 comments on commit 87ee98c

Please sign in to comment.