Remove DCHECKs in GetYUVSubsampling().
Do not DCHECK CanDecodeToYUV() is true in GetYUVSubsampling(), because GetYUVSubsampling() is called by the hardware decoding code paths, not by the decoding-to-YUV code paths. Do not assert that the AVIF_PIXEL_FORMAT_YUV400 case is not reached, because that is the YUV format of monochrome AVIF images. Please refer to https://crrev.com/c/2327461. Bug: 915972 Change-Id: Iced2abe0f86b0f407855c371dbf5e6abef561946 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2340071Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Peter Kasting <pkasting@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#795387}
Showing
Please register or sign in to comment