mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec/dnxhdenc: Assert that frame size is not assigned an error code
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
88a2e4504d
commit
900fe8ee5d
@ -478,6 +478,7 @@ static av_cold int dnxhd_encode_init(AVCodecContext *avctx)
|
||||
if (ctx->cid_table->frame_size == DNXHD_VARIABLE) {
|
||||
ctx->frame_size = ff_dnxhd_get_hr_frame_size(ctx->cid,
|
||||
avctx->width, avctx->height);
|
||||
av_assert0(ctx->frame_size >= 0);
|
||||
ctx->coding_unit_size = ctx->frame_size;
|
||||
} else {
|
||||
ctx->frame_size = ctx->cid_table->frame_size;
|
||||
|
Loading…
Reference in New Issue
Block a user