PIX_FMT_YUV420P is going to be deprecated.
Use AV_PIX_FMT_YUV420P instead.
Change-Id: Ia6d119367bc2763da8206b1e6c61f3183830fe2b
int sws_flags = SWS_BICUBIC;
mImgConvertCtx = sws_getCachedContext(mImgConvertCtx,
mFrame->width, mFrame->height, (AVPixelFormat)mFrame->format, width, height,
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;
if (mImgConvertCtx == NULL) {
ALOGE("Cannot initialize the conversion context");
return ERR_SWS_FAILED;