*/
#include "libavutil/pixdesc.h"
+#include "libavutil/version.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
{
FFSWAP(uint8_t*, frame->data[1], frame->data[2]);
FFSWAP(int, frame->linesize[1], frame->linesize[2]);
- FFSWAP(uint64_t, frame->error[1], frame->error[2]);
FFSWAP(AVBufferRef*, frame->buf[1], frame->buf[2]);
+
+#if FF_API_ERROR_FRAME
+FF_DISABLE_DEPRECATION_WARNINGS
+ FFSWAP(uint64_t, frame->error[1], frame->error[2]);
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
}
static AVFrame *get_video_buffer(AVFilterLink *link, int w, int h)