From e81030947a499a56b52e868dd4dcf475fa0d1ce8 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Fri, 1 Apr 2016 12:13:54 +0100 Subject: [PATCH] Change endianness to Int --- lib/LibAvContextHandle.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/LibAvContextHandle.cpp b/lib/LibAvContextHandle.cpp index 18f836d..bd095f4 100644 --- a/lib/LibAvContextHandle.cpp +++ b/lib/LibAvContextHandle.cpp @@ -231,8 +231,13 @@ Bool LibAvContextHandle::initAvFormat( const char* filename, UInt& width, UInt& pix_fmt = AV_PIX_FMT_YUV444P; break; case AV_PIX_FMT_GRAY16LE: + bits_pel = 16; + endianness = 1; + pix_fmt = AV_PIX_FMT_GRAY8; + break; case AV_PIX_FMT_GRAY16BE: bits_pel = 16; + endianness = 0; pix_fmt = AV_PIX_FMT_GRAY8; break; }