From ecd98887f3a1de92a1338c79f6b2aab7e85fa92d Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sun, 23 Mar 2014 19:54:52 +0000 Subject: [PATCH] Change YUV format name --- source/lib/ffmpeg/LibAvContextHandle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/ffmpeg/LibAvContextHandle.cpp b/source/lib/ffmpeg/LibAvContextHandle.cpp index dad618b..ac5416e 100755 --- a/source/lib/ffmpeg/LibAvContextHandle.cpp +++ b/source/lib/ffmpeg/LibAvContextHandle.cpp @@ -113,7 +113,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height case YUV420p: av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_YUV420P ), 0 ); break; - case YUV400: + case GRAY: av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_GRAY8 ), 0 ); break; default: @@ -177,7 +177,7 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height pixel_format = YUV420p; break; case AV_PIX_FMT_GRAY8: - pixel_format = YUV400; + pixel_format = GRAY; break; default: break;