我正在尝试使用libswscale将YUV帧转换为RGB。这是我的代码:AVFrame*RGBFrame;SwsContext*ConversionContext;ConversionContext=sws_getCachedContext(NULL,FrameWidth,FrameHeight,AV_PIX_FMT_YUV420P,FrameWidth,FrameHeight,AV_PIX_FMT_RGB24,SWS_BILINEAR,0,0,0);RGBFrame=av_frame_alloc();avpicture_fill((AVPicture*)RGBFrame,&FillV