diff options
author | Kirill Gavrilov <gavr.mail@gmail.com> | 2016-03-28 19:51:24 +0300 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-03-28 21:23:15 +0200 |
commit | f3ec8ac0f42242ff9a5c94cf143058ee772caa61 (patch) | |
tree | 8e0382de058a7177e70aff0acd0552b464d6cd4d /libavcodec | |
parent | c2bbcf16077b30ce1d8d004c9a7cd21b15d02a15 (diff) | |
download | ffmpeg-f3ec8ac0f42242ff9a5c94cf143058ee772caa61.tar.gz |
lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mediacodecdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index 5c1368ff32..c21cebae94 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -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); |