【发布时间】:2020-05-04 03:28:15
【问题描述】:
我在 ffmeg 库中有 eroor 错误:成员访问不完整类型“AVFormatInternal” 我尝试这样做
AVFormatContext *s;
s->internal->raw_packet_buffer;
在 libav 示例中它可以工作。 我做错了什么?
【问题讨论】:
标签: ffmpeg libavcodec libav libavformat
我在 ffmeg 库中有 eroor 错误:成员访问不完整类型“AVFormatInternal” 我尝试这样做
AVFormatContext *s;
s->internal->raw_packet_buffer;
在 libav 示例中它可以工作。 我做错了什么?
【问题讨论】:
标签: ffmpeg libavcodec libav libavformat
这是因为AVCodecInternal 是在internal.h 中定义的
您必须在.c 文件中添加#include "libavcodec/internal.h",其中使用AVCodecInternal。
【讨论】: