Signed-off-by: Marton Balint <c...@passwd.hu>
---
 libavcodec/libvpxenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 286baa14a7..4c02315fd2 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -1326,7 +1326,7 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket 
*pkt,
             rawimg_alpha->planes[VPX_PLANE_U] = u_plane;
             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_Y] = frame->linesize[3];
             rawimg_alpha->stride[VPX_PLANE_U] = frame->linesize[1];
             rawimg_alpha->stride[VPX_PLANE_V] = frame->linesize[2];
         }
-- 
2.16.4

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to