]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libvpxenc.c
Merge commit '0e8c6f221a8ddb7dfb3c9e9bd0b33cb12e9391b8'
[ffmpeg] / libavcodec / libvpxenc.c
index f5506f7e6136ed3923f97f2ed60701f85a3e8626..5f3c32a59803335cc9c4353692c04d915b9d4559 100644 (file)
@@ -667,6 +667,9 @@ static int vp8_encode(AVCodecContext *avctx, AVPacket *pkt,
             v_plane = av_malloc(frame->linesize[2] * frame->height);
             memset(v_plane, 0x80, frame->linesize[2] * frame->height);
             rawimg_alpha->planes[VPX_PLANE_V] = v_plane;
+            rawimg_alpha->stride[VPX_PLANE_Y] = frame->linesize[0];
+            rawimg_alpha->stride[VPX_PLANE_U] = frame->linesize[1];
+            rawimg_alpha->stride[VPX_PLANE_V] = frame->linesize[2];
         }
         timestamp                   = frame->pts;
         if (frame->pict_type == AV_PICTURE_TYPE_I)