Signed-off-by: Michael Niedermayer <[email protected]>
---
libavcodec/proresenc_kostya.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavcodec/proresenc_kostya.c b/libavcodec/proresenc_kostya.c
index 0f69767..1e40dcf 100644
--- a/libavcodec/proresenc_kostya.c
+++ b/libavcodec/proresenc_kostya.c
@@ -938,7 +938,8 @@ static int encode_frame(AVCodecContext *avctx, AVPacket
*pkt,
int sizes[4] = { 0 };
int slice_hdr_size = 2 + 2 * (ctx->num_planes - 1);
int frame_size, picture_size, slice_size;
- int pkt_size, ret, max_slice_size = 0;
+ int pkt_size, ret;
+ int max_slice_size = (ctx->frame_size_upper_bound - 200) /
ctx->pictures_per_frame / ctx->slices_per_picture;
uint8_t frame_flags;
*avctx->coded_frame = *pic;
--
1.7.9.5
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel