X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhuffyuvenc.c;h=49d711a9487123265d159193cf5b37d5f47b6b83;hb=a2426798d6020d944985c478d08d432f8dbdbf02;hp=65b165aaa00cefe11ebe8daf939250a534d6d08e;hpb=88e7ea3e560373d443c49fa8857b999410225fe2;p=ffmpeg diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index 65b165aaa00..49d711a9487 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -238,7 +238,7 @@ FF_DISABLE_DEPRECATION_WARNINGS FF_ENABLE_DEPRECATION_WARNINGS #endif - s->bps = desc->comp[0].depth_minus1 + 1; + s->bps = desc->comp[0].depth; s->yuv = !(desc->flags & AV_PIX_FMT_FLAG_RGB) && desc->nb_components >= 2; s->chroma = desc->nb_components > 2; s->alpha = !!(desc->flags & AV_PIX_FMT_FLAG_ALPHA); @@ -1045,7 +1045,7 @@ static av_cold int encode_end(AVCodecContext *avctx) static const AVOption options[] = { { "non_deterministic", "Allow multithreading for e.g. context=1 at the expense of determinism", - offsetof(HYuvContext, non_determ), AV_OPT_TYPE_INT, { .i64 = 1 }, + offsetof(HYuvContext, non_determ), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM }, { NULL }, };