[FFmpeg-cvslog] lavc/mediacodec: fix zero stride for OMX.allwinner.video.decoder.avc

Kirill Gavrilov git at videolan.org
Mon Mar 28 21:24:49 CEST 2016


ffmpeg | branch: master | Kirill Gavrilov <gavr.mail at gmail.com> | Mon Mar 28 19:51:24 2016 +0300| [f3ec8ac0f42242ff9a5c94cf143058ee772caa61] | committer: Matthieu Bouron

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f3ec8ac0f42242ff9a5c94cf143058ee772caa61
---

 libavcodec/mediacodecdec.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 5c1368f..c21ceba 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);



More information about the ffmpeg-cvslog mailing list