You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavc/mediacodec: use ternary operator to set slice-height value
This commit is contained in:
@@ -255,11 +255,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
|
|||||||
av_freep(&format);
|
av_freep(&format);
|
||||||
return AVERROR_EXTERNAL;
|
return AVERROR_EXTERNAL;
|
||||||
}
|
}
|
||||||
if (value > 0) {
|
s->slice_height = value > 0 ? value : s->height;
|
||||||
s->slice_height = value;
|
|
||||||
} else {
|
|
||||||
s->slice_height = s->height;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (strstr(s->codec_name, "OMX.Nvidia.")) {
|
if (strstr(s->codec_name, "OMX.Nvidia.")) {
|
||||||
s->slice_height = FFALIGN(s->height, 16);
|
s->slice_height = FFALIGN(s->height, 16);
|
||||||
|
Reference in New Issue
Block a user