Advertisement
Guest User

Untitled

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