我在xcode中使用这个utils.c文件,它具有以下内容:
#if FF_API_AVCODEC_OPEN
int attribute_align_arg avcodec_open(AVCodecContext *avctx, AVCodec *codec)
{
return avcodec_open2(avctx, codec, NULL);
}
Run Code Online (Sandbox Code Playgroud)
这导致Expected ; after top level declaratorxcode中的错误(在构建期间):int attribute_align_arg avcodec_open(....
为什么?我该怎么做才能解决这个问题.
谢谢.