Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/libarmbox/video.cpp b/libarmbox/video.cpp
- index b3e5f96..c042b2c 100644
- --- a/libarmbox/video.cpp
- +++ b/libarmbox/video.cpp
- @@ -362,9 +362,15 @@ void cVideo::closeDevice(void)
- int cVideo::setAspectRatio(int aspect, int mode)
- {
- static const char *a[] = { "n/a", "4:3", "14:9", "16:9" };
- -// static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
- - static const char *m[] = { "letterbox", "panscan", "bestfit", "nonlinear", "(unset)" };
- + static const char *m[] = { "panscan", "letterbox", "bestfit", "nonlinear", "(unset)" };
- int n;
- +
- + /* workaround for mix-up panscan/letterbox on hd51 */
- + if (mode == 0)
- + mode = 1;
- + else if (mode == 1)
- + mode = 0;
- +
- lt_debug("%s: a:%d m:%d %s\n", __func__, aspect, mode, m[(mode < 0||mode > 3) ? 4 : mode]);
- if (aspect > 3 || aspect == 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement