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

Kirill Gavrilov gavr.mail at gmail.com
Sun Mar 27 23:10:08 CEST 2016


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

diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index d385651..b6e7c46 100644
--- a/libavcodec/mediacodecdec.c
+++ b/libavcodec/mediacodecdec.c
@@ -266,6 +266,8 @@ static int mediacodec_dec_parse_format(AVCodecContext *avctx, MediaCodecDecConte
     } else if (strstr(s->codec_name, "OMX.SEC.avc.dec")) {
         s->slice_height = avctx->height;
         s->stride = avctx->width;
+    } else if (strstr(s->codec_name, "OMX.allwinner.video.decoder.avc")) {
+        s->stride = avctx->width;
     }
 
     if (!ff_AMediaFormat_getInt32(s->format, "color-format", &value)) {
-- 
1.9.1



More information about the ffmpeg-devel mailing list