Commit 42550329 authored by Marton Balint's avatar Marton Balint Committed by James Zern

avcodec/libvpxenc: fix alpha stride

Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
Signed-off-by: 's avatarJames Zern <jzern@google.com>
parent e4fdeb3f
...@@ -1326,7 +1326,7 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket *pkt, ...@@ -1326,7 +1326,7 @@ static int vpx_encode(AVCodecContext *avctx, AVPacket *pkt,
rawimg_alpha->planes[VPX_PLANE_U] = u_plane; rawimg_alpha->planes[VPX_PLANE_U] = u_plane;
memset(v_plane, 0x80, frame->linesize[2] * frame->height); memset(v_plane, 0x80, frame->linesize[2] * frame->height);
rawimg_alpha->planes[VPX_PLANE_V] = v_plane; 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_U] = frame->linesize[1];
rawimg_alpha->stride[VPX_PLANE_V] = frame->linesize[2]; rawimg_alpha->stride[VPX_PLANE_V] = frame->linesize[2];
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment