Ticket #53325: patch-0002-LibavInteraction-fix.diff

File patch-0002-LibavInteraction-fix.diff, 646 bytes (added by kencu (Ken), 8 years ago)
  • ./QTfrontend/util/LibavInteraction.cpp

    old new  
    106106            if (!pCodec->pix_fmts)
    107107                continue;
    108108            bool yuv420Supported = false;
    109             for (const PixelFormat* pfmt = pCodec->pix_fmts; *pfmt != -1; pfmt++)
    110                 if (*pfmt == PIX_FMT_YUV420P)
     109            for (const AVPixelFormat* pfmt = pCodec->pix_fmts; *pfmt != -1; pfmt++)
     110                if (*pfmt == AV_PIX_FMT_YUV420P)
    111111                {
    112112                    yuv420Supported = true;
    113113                    break;