GPT答: |
7i24.cn
|
么?
在新版本的FFmpeg中,img_convert_ctx = sws_getContext(ifmt_ctx->streams[videoindex]->codecpar->width,ifmt_ctx->streams[videoindex]->codecpar->height, ifmt_ctx->streams[videoindex]->codecpar->format, pCodecCtx->width, pCodecCtx->height, AV_PIX_FMT_YUV420P, SWS_BICUBIC, NULL, NULL,NULL);
|