Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Issue 2709923005: Android HW decoder: Support odd heights for non-texture output (Closed)

Created:
3 years, 10 months ago by magjed_webrtc
Modified:
3 years, 10 months ago
Reviewers:
sakal
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Android HW decoder: Support odd heights for non-texture output When textures are not enabled and we are using byte buffer outputs, the decoder is currently crashing for odd heights because of an RTC_CHECK. This CL removes the check and handles the pointer offset to the chroma planes for the odd height case instead. This has been verified to work correctly on a Pixel device. BUG=webrtc:6651 Review-Url: https://codereview.webrtc.org/2709923005 Cr-Commit-Position: refs/heads/master@{#16805} Committed: https://chromium.googlesource.com/external/webrtc/+/0e22a4cfd3790d80ad1ae699891341fe322cb418

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't read outside buffers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -11 lines) Patch
M webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc View 1 2 chunks +36 lines, -11 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
magjed_webrtc
Sami - please take a look.
3 years, 10 months ago (2017-02-23 12:28:01 UTC) #5
sakal
lgtm
3 years, 10 months ago (2017-02-23 12:49:39 UTC) #6
sakal
https://codereview.webrtc.org/2709923005/diff/1/webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc File webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/2709923005/diff/1/webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc#newcode820 webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc:820: libyuv::I420Copy(y_ptr, stride, u_ptr, uv_stride, v_ptr, uv_stride, Hmm, it seems ...
3 years, 10 months ago (2017-02-23 12:59:07 UTC) #7
magjed_webrtc
https://codereview.webrtc.org/2709923005/diff/1/webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc File webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc (right): https://codereview.webrtc.org/2709923005/diff/1/webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc#newcode820 webrtc/sdk/android/src/jni/androidmediadecoder_jni.cc:820: libyuv::I420Copy(y_ptr, stride, u_ptr, uv_stride, v_ptr, uv_stride, On 2017/02/23 12:59:07, ...
3 years, 10 months ago (2017-02-23 14:19:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2709923005/20001
3 years, 10 months ago (2017-02-23 15:08:57 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-23 15:11:36 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/0e22a4cfd3790d80ad1ae6998...

Powered by Google App Engine
This is Rietveld 408576698