From c2f3deb9a63d8ec3b9ad144c353b5c1f8eb24450 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 May 2015 10:25:29 +0200 Subject: [PATCH] thunderbird: add libvpx-1.4.0 patch from Arch. --- .../thunderbird-31.6.0-libvpx-modern.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/thunderbird/patches/thunderbird-31.6.0-libvpx-modern.patch diff --git a/srcpkgs/thunderbird/patches/thunderbird-31.6.0-libvpx-modern.patch b/srcpkgs/thunderbird/patches/thunderbird-31.6.0-libvpx-modern.patch new file mode 100644 index 0000000000..493e411823 --- /dev/null +++ b/srcpkgs/thunderbird/patches/thunderbird-31.6.0-libvpx-modern.patch @@ -0,0 +1,24 @@ +--- mozilla/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc.modern 2015-04-07 14:30:05.525960513 -0400 ++++ mozilla/media/webrtc/trunk/webrtc/modules/video_coding/codecs/vp8/vp8_impl.cc 2015-04-07 14:32:22.478199058 -0400 +@@ -180,7 +180,7 @@ int VP8EncoderImpl::InitEncode(const Vid + // Creating a wrapper to the image - setting image data to NULL. Actual + // pointer will be set in encode. Setting align to 1, as it is meaningless + // (actual memory is not allocated). +- raw_ = vpx_img_wrap(NULL, IMG_FMT_I420, codec_.width, codec_.height, ++ raw_ = vpx_img_wrap(NULL, VPX_IMG_FMT_I420, codec_.width, codec_.height, + 1, NULL); + // populate encoder configuration with default values + if (vpx_codec_enc_config_default(vpx_codec_vp8_cx(), config_, 0)) { +@@ -349,9 +349,9 @@ int VP8EncoderImpl::Encode(const I420Vid + } + // Image in vpx_image_t format. + // Input image is const. VP8's raw image is not defined as const. +- raw_->planes[PLANE_Y] = const_cast(input_image.buffer(kYPlane)); +- raw_->planes[PLANE_U] = const_cast(input_image.buffer(kUPlane)); +- raw_->planes[PLANE_V] = const_cast(input_image.buffer(kVPlane)); ++ raw_->planes[VPX_PLANE_Y] = const_cast(input_image.buffer(kYPlane)); ++ raw_->planes[VPX_PLANE_U] = const_cast(input_image.buffer(kUPlane)); ++ raw_->planes[VPX_PLANE_V] = const_cast(input_image.buffer(kVPlane)); + // TODO(mikhal): Stride should be set in initialization. + raw_->stride[VPX_PLANE_Y] = input_image.stride(kYPlane); + raw_->stride[VPX_PLANE_U] = input_image.stride(kUPlane);