Commit 308d3ed5 authored by Matthieu Bouron's avatar Matthieu Bouron

lavc/mediacodec: use ternary operator to set slice-height value

parent 8f2a1990
......@@ -255,11 +255,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
av_freep(&format);
return AVERROR_EXTERNAL;
}
if (value > 0) {
s->slice_height = value;
} else {
s->slice_height = s->height;
}
s->slice_height = value > 0 ? value : s->height;
if (strstr(s->codec_name, "OMX.Nvidia.")) {
s->slice_height = FFALIGN(s->height, 16);
......
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