1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-07 08:30:10 +02:00

Merge commit '41e1354c101004ccd46dc08d3dd6e956e83a6b51'

* commit '41e1354c101004ccd46dc08d3dd6e956e83a6b51':
  proresenc: Properly account for alpha plane

Conflicts:
	libavcodec/proresenc_kostya.c

See: 117bc8e6ff
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-08-18 20:27:41 +02:00
commit cdd0ad7be1

View File

@ -1253,7 +1253,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
+ 200;
if (ctx->alpha_bits) {
// alpha plane is run-coded and might run over bit budget
// The alpha plane is run-coded and might exceed the bit budget.
ctx->frame_size_upper_bound += ctx->pictures_per_frame *
ctx->slices_per_picture *
/* num pixels per slice */ (ctx->mbs_per_slice * 256 *