Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From da731bf2740dfc09fb6f053efcce080125693c87 Mon Sep 17 00:00:00 2001
- From: Hendrik Leppkes <h.leppkes@gmail.com>
- Date: Wed, 7 Sep 2011 10:07:52 +0200
- Subject: [PATCH] Correct the bits per pixel for P010/P210.
- This fixes a crash when benchmarking 10bit decoding in GraphStudio.
- ---
- decoder/LAVVideo/LAVPixFmtConverter.cpp | 4 ++--
- 1 files changed, 2 insertions(+), 2 deletions(-)
- diff --git a/decoder/LAVVideo/LAVPixFmtConverter.cpp b/decoder/LAVVideo/LAVPixFmtConverter.cpp
- index 178688c..4cc3ad0 100644
- --- a/decoder/LAVVideo/LAVPixFmtConverter.cpp
- +++ b/decoder/LAVVideo/LAVPixFmtConverter.cpp
- @@ -97,8 +97,8 @@ LAVPixFmtDesc lav_pixfmt_desc[] = {
- { MEDIASUBTYPE_YUY2, 16, 2, 0 }, // YUY2 (packed)
- { MEDIASUBTYPE_UYVY, 16, 2, 0 }, // UYVY (packed)
- { MEDIASUBTYPE_AYUV, 32, 4, 0 }, // AYUV (packed)
- - { MEDIASUBTYPE_P010, 15, 2, 2, { 1, 2 }, { 1, 1 } }, // P010
- - { MEDIASUBTYPE_P210, 20, 2, 2, { 1, 1 }, { 1, 1 } }, // P210
- + { MEDIASUBTYPE_P010, 24, 2, 2, { 1, 2 }, { 1, 1 } }, // P010
- + { MEDIASUBTYPE_P210, 32, 2, 2, { 1, 1 }, { 1, 1 } }, // P210
- { FOURCCMap('014Y'), 32, 4, 0 }, // Y410 (packed)
- { MEDIASUBTYPE_P016, 24, 2, 2, { 1, 2 }, { 1, 1 } }, // P016
- { MEDIASUBTYPE_P216, 32, 2, 2, { 1, 1 }, { 1, 1 } }, // P216
- --
- 1.7.0.2.msysgit.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement