From 30a4819499f9238ac25cda642c232ffb43a0db9e Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Tue, 28 Jul 2015 23:04:19 +0100 Subject: [PATCH] Check extension always in lowercase --- lib/PlaYUVerStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PlaYUVerStream.cpp b/lib/PlaYUVerStream.cpp index aefc34a..f123d72 100644 --- a/lib/PlaYUVerStream.cpp +++ b/lib/PlaYUVerStream.cpp @@ -179,7 +179,7 @@ Void PlaYUVerStream::findHandler() #ifdef USE_FFMPEG for( UInt i = 0; i < LibAvContextHandle::supportedReadFormatsExt().size(); i++ ) { - if( LibAvContextHandle::supportedReadFormatsExt()[i] == currExt ) + if( LibAvContextHandle::supportedReadFormatsExt()[i] == lowercase( currExt ) ) { m_cFormatName = LibAvContextHandle::supportedReadFormatsExt()[i]; m_iStreamHandler = FFMPEG; @@ -195,7 +195,7 @@ Void PlaYUVerStream::findHandler() #ifdef USE_FFMPEG for( UInt i = 0; i < LibAvContextHandle::supportedWriteFormatsExt().size(); i++ ) { - if( LibAvContextHandle::supportedWriteFormatsExt()[i] == currExt ) + if( LibAvContextHandle::supportedWriteFormatsExt()[i] == lowercase( currExt ) ) { m_cFormatName = LibAvContextHandle::supportedWriteFormatsExt()[i]; m_iStreamHandler = FFMPEG;