Fix endian issue in printing

This commit is contained in:
Andreas Öman 2009-12-10 21:10:28 +00:00
parent 88bb9b7791
commit e43ff33d87

View file

@ -500,14 +500,11 @@ v4l_adapter_check(const char *path, int fd)
break;
tvhlog(LOG_INFO, "v4l",
"%s: Format #%d: %s %c%c%c%c %s",
"%s: Format #%d: %s [%.4s] %s",
path,
fmtdesc.index,
fmtdesc.description,
fmtdesc.pixelformat >> 24,
fmtdesc.pixelformat >> 16,
fmtdesc.pixelformat >> 8,
fmtdesc.pixelformat,
&fmtdesc.pixelformat,
fmtdesc.flags & V4L2_FMT_FLAG_COMPRESSED ? "(compressed)" : "");
if(fmtdesc.pixelformat == V4L2_PIX_FMT_MPEG)