OSDN Git Service

stagefright-plugins: Update pixfmt
authorKeith Mok <kmok@cyngn.com>
Wed, 20 Jan 2016 00:22:10 +0000 (16:22 -0800)
committerKeith Mok <kmok@cyngn.com>
Wed, 20 Jan 2016 00:27:13 +0000 (16:27 -0800)
PIX_FMT_YUV420P is going to be deprecated.
Use AV_PIX_FMT_YUV420P instead.

Change-Id: Ia6d119367bc2763da8206b1e6c61f3183830fe2b

omx/SoftFFmpegVideo.cpp

index 1cba05e..98618fe 100644 (file)
@@ -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;