summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2019-10-27 18:10:31 +0100
committerJames Zern <jzern@google.com>2019-11-05 23:14:24 -0800
commit425503291420919a6ef9076298a2f6cbbe47d847 (patch)
tree89f64f1c4837567977e3f639d4eb2a922c32031c /libavcodec
parente4fdeb3fcefeb98f2225f7ccded156fb175959c5 (diff)
downloadffmpeg-streaming-425503291420919a6ef9076298a2f6cbbe47d847.zip
ffmpeg-streaming-425503291420919a6ef9076298a2f6cbbe47d847.tar.gz
avcodec/libvpxenc: fix alpha stride
Signed-off-by: Marton Balint <cus@passwd.hu> Signed-off-by: James Zern <jzern@google.com>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/libvpxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 286baa1..4c02315 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];
}
OpenPOWER on IntegriCloud