From: Keith Mok Date: Wed, 20 Jan 2016 00:22:10 +0000 (-0800) Subject: stagefright-plugins: Update pixfmt X-Git-Tag: android-x86-7.1-r1~50 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fexternal-stagefright-plugins.git;a=commitdiff_plain;h=24988a8942da9e734dfe996dd36e4b55d96f40b8 stagefright-plugins: Update pixfmt PIX_FMT_YUV420P is going to be deprecated. Use AV_PIX_FMT_YUV420P instead. Change-Id: Ia6d119367bc2763da8206b1e6c61f3183830fe2b --- diff --git a/omx/SoftFFmpegVideo.cpp b/omx/SoftFFmpegVideo.cpp index 1cba05e..98618fe 100644 --- a/omx/SoftFFmpegVideo.cpp +++ b/omx/SoftFFmpegVideo.cpp @@ -528,7 +528,7 @@ int32_t SoftFFmpegVideo::drainOneOutputBuffer() { int sws_flags = SWS_BICUBIC; mImgConvertCtx = sws_getCachedContext(mImgConvertCtx, mFrame->width, mFrame->height, (AVPixelFormat)mFrame->format, width, height, - PIX_FMT_YUV420P, sws_flags, NULL, NULL, NULL); + AV_PIX_FMT_YUV420P, sws_flags, NULL, NULL, NULL); if (mImgConvertCtx == NULL) { ALOGE("Cannot initialize the conversion context"); return ERR_SWS_FAILED;