Commit 900fe8ee authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/dnxhdenc: Assert that frame size is not assigned an error code

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 88a2e450
...@@ -478,6 +478,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx) ...@@ -478,6 +478,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
if (ctx->cid_table->frame_size == DNXHD_VARIABLE) { if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {
ctx->frame_size = ff_dnxhd_get_hr_frame_size(ctx->cid, ctx->frame_size = ff_dnxhd_get_hr_frame_size(ctx->cid,
avctx->width, avctx->height); avctx->width, avctx->height);
av_assert0(ctx->frame_size >= 0);
ctx->coding_unit_size = ctx->frame_size; ctx->coding_unit_size = ctx->frame_size;
} else { } else {
ctx->frame_size = ctx->cid_table->frame_size; ctx->frame_size = ctx->cid_table->frame_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment