Commit f3ec8ac0 authored by Kirill Gavrilov's avatar Kirill Gavrilov Committed by Matthieu Bouron

lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc

parent c2bbcf16
......@@ -247,7 +247,7 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
av_freep(&format);
return AVERROR_EXTERNAL;
}
s->stride = value >= 0 ? value : s->width;
s->stride = value > 0 ? value : s->width;
if (!ff_AMediaFormat_getInt32(s->format, "slice-height", &value)) {
format = ff_AMediaFormat_toString(s->format);
......
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