Advertisement
svenhoefer

Untitled

Apr 27th, 2018
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.92 KB | None | 0 0
  1. diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp
  2. index b3e5f96..c042b2c 100644
  3. --- a/libarmbox/video.cpp
  4. +++ b/libarmbox/video.cpp
  5. @@ -362,9 +362,15 @@ void cVideo::closeDevice(void)
  6.  int cVideo::setAspectRatio(int aspect, int mode)
  7.  {
  8.         static const char *a[] = { "n/a", "4:3", "14:9", "16:9" };
  9. -//     static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
  10. -       static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" };
  11. +       static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
  12.         int n;
  13. +
  14. +       /* workaround for mix-up panscan/letterbox on hd51 */
  15. +       if (mode == 0)
  16. +               mode = 1;
  17. +       else if (mode == 1)
  18. +               mode = 0;
  19. +
  20.         lt_debug("%s: a:%d m:%d  %s\n", __func__, aspect, mode, m[(mode < 0||mode > 3) ? 4 : mode]);
  21.  
  22.         if (aspect > 3 || aspect == 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement