1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

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

This commit is contained in:
Kirill Gavrilov 2016-03-28 19:51:24 +03:00 committed by Matthieu Bouron
parent c2bbcf1607
commit f3ec8ac0f4

View File

@ -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);