OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../openlibraries/0001-libav-replace-deprecated_PIX_FMT_names.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Fix to replace deprecated PIX_FMT names by the newer variants
  17. Reference:
  18. http://git.libav.org/?p=libav.git;a=commitdiff;h=71e445fca3ccc1285068386bf9858d180b0fecfc
  19. --- ./src/openmedialib/plugins/avformat/avformat_plugin.cpp.orig 2011-04-17 11:59:29.112077819 +0200
  20. +++ ./src/openmedialib/plugins/avformat/avformat_plugin.cpp 2011-04-17 12:35:52.872071393 +0200
  21. @@ -65,11 +65,11 @@
  22. return L"yuv420p";
  23. else if ( fmt == PIX_FMT_YUVJ420P )
  24. return L"yuv420p";
  25. - else if ( fmt == PIX_FMT_UYVY411 )
  26. + else if ( fmt == PIX_FMT_UYYVYY411 )
  27. return L"yuv411";
  28. else if ( fmt == PIX_FMT_YUV411P )
  29. return L"yuv411p";
  30. - else if ( fmt == PIX_FMT_YUV422 )
  31. + else if ( fmt == PIX_FMT_YUYV422 )
  32. return L"yuv422";
  33. else if ( fmt == PIX_FMT_YUV422P )
  34. return L"yuv422p";
  35. @@ -79,7 +79,7 @@
  36. return L"r8g8b8";
  37. else if ( fmt == PIX_FMT_BGR24 )
  38. return L"b8g8r8";
  39. - else if ( fmt == PIX_FMT_RGBA32 )
  40. + else if ( fmt == PIX_FMT_RGB32 )
  41. return L"r8g8b8a8";
  42. return L"";
  43. }