解决方法:
if (pFormatCtx->oformat->flags & AVFMT_GLOBALHEADER) {
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
}
注释:
pFormatCtx为AVFormatContext
pCodecCtx为AVCodecContext
解决方法:
if (pFormatCtx->oformat->flags & AVFMT_GLOBALHEADER) {
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
}
注释:
pFormatCtx为AVFormatContext
pCodecCtx为AVCodecContext