Up until now, including error.h alone does not make the AVERROR_* defines usable, because they just expand to something involving MKTAG, but without the header providing MKTAG. So include macros.h, the header providing MKTAG.
Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com> --- Since 580e168a945b65100ec2c25433f33bfacfe9f7be one could also have included common.h. libavutil/error.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavutil/error.h b/libavutil/error.h index 71df4da353..0d3269aa6d 100644 --- a/libavutil/error.h +++ b/libavutil/error.h @@ -27,6 +27,8 @@ #include <errno.h> #include <stddef.h> +#include "macros.h" + /** * @addtogroup lavu_error * -- 2.30.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".