1 --- webrtc-20121218svn2718/src/modules/video_coding/codecs/vp8/vp8.cc~ 2012-08-25 01:01:38.000000000 +0200
2 +++ webrtc-20121218svn2718/src/modules/video_coding/codecs/vp8/vp8.cc 2015-05-23 22:41:02.950092007 +0200
4 if (codec_.width % 32 == 0) {
7 - raw_ = vpx_img_alloc(NULL, IMG_FMT_I420, codec_.width, codec_.height, align);
8 + raw_ = vpx_img_alloc(NULL, VPX_IMG_FMT_I420, codec_.width, codec_.height, align);
9 // populate encoder configuration with default values
10 if (vpx_codec_enc_config_default(vpx_codec_vp8_cx(), config_, 0)) {
11 return WEBRTC_VIDEO_CODEC_ERROR;
13 uint8_t* buffer = input_image.Buffer();
14 uint32_t v_plane_loc = codec_.height * codec_.width +
15 ((codec_.width + 1) >> 1) * ((codec_.height + 1) >> 1);
16 - raw_->planes[PLANE_Y] = buffer;
17 - raw_->planes[PLANE_U] = &buffer[codec_.width * codec_.height];
18 - raw_->planes[PLANE_V] = &buffer[v_plane_loc];
19 + raw_->planes[VPX_PLANE_Y] = buffer;
20 + raw_->planes[VPX_PLANE_U] = &buffer[codec_.width * codec_.height];
21 + raw_->planes[VPX_PLANE_V] = &buffer[v_plane_loc];
24 #if WEBRTC_LIBVPX_VERSION >= 971