From 8bb20a26ca17bf7c614a7acaa816b99411eea861 Mon Sep 17 00:00:00 2001 From: Joao Carreira Date: Sat, 29 Mar 2014 01:57:33 +0000 Subject: [PATCH] Minor bugfix after files changes --- source/lib/ffmpeg/LibAvContextHandle.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/source/lib/ffmpeg/LibAvContextHandle.cpp b/source/lib/ffmpeg/LibAvContextHandle.cpp index 9d93ec0..8b4c6d0 100755 --- a/source/lib/ffmpeg/LibAvContextHandle.cpp +++ b/source/lib/ffmpeg/LibAvContextHandle.cpp @@ -24,6 +24,7 @@ #include #include "LibAvContextHandle.h" +#include "PlaYUVerFrame.h" namespace plaYUVer { @@ -109,12 +110,12 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height } switch( pixel_format ) { - case NO_FMT: + case PlaYUVerFrame::NO_FMT: break; - case YUV420p: + case PlaYUVerFrame::YUV420p: av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_YUV420P ), 0 ); break; - case GRAY: + case PlaYUVerFrame::GRAY: av_dict_set( &format_opts, "pixel_format", av_get_pix_fmt_name( AV_PIX_FMT_GRAY8 ), 0 ); break; default: @@ -175,10 +176,10 @@ Bool LibAvContextHandle::initAvFormat( char* filename, UInt& width, UInt& height switch( video_dec_ctx->pix_fmt ) { case AV_PIX_FMT_YUV420P: - pixel_format = YUV420p; + pixel_format = PlaYUVerFrame::YUV420p; break; case AV_PIX_FMT_GRAY8: - pixel_format = GRAY; + pixel_format = PlaYUVerFrame::GRAY; break; default: break;