From 4e7840d943a53807af2c5c0a5ebd09076053ecb0 Mon Sep 17 00:00:00 2001 From: "kma@webrtc.org" Date: Fri, 11 May 2012 18:16:35 +0000 Subject: [PATCH] Revert 2233 - Aligned video buffer to 32 bytes boundary, when using vpx_img_alloc() in vp8. M vp8.cc TBR=kma@webrtc.org Review URL: https://webrtc-codereview.appspot.com/579013 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2234 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/video_coding/codecs/vp8/main/source/vp8.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc index 97427e387e..84673e24ff 100644 --- a/src/modules/video_coding/codecs/vp8/main/source/vp8.cc +++ b/src/modules/video_coding/codecs/vp8/main/source/vp8.cc @@ -178,7 +178,7 @@ int VP8Encoder::InitEncode(const VideoCodec* inst, encoded_image_._buffer = new uint8_t[encoded_image_._size]; encoded_image_._completeFrame = true; - vpx_img_alloc(raw_, IMG_FMT_I420, codec_.width, codec_.height,32); + vpx_img_alloc(raw_, IMG_FMT_I420, codec_.width, codec_.height, 1); // populate encoder configuration with default values if (vpx_codec_enc_config_default(vpx_codec_vp8_cx(), config_, 0)) { return WEBRTC_VIDEO_CODEC_ERROR; @@ -972,7 +972,7 @@ VideoDecoder* VP8Decoder::Copy() { if (!vpx_img_alloc(&ref_frame_->img, static_cast(image_format_), - decoded_image_._width, decoded_image_._height, 32)) { + decoded_image_._width, decoded_image_._height, 1)) { assert(false); delete copy; return NULL;