*/
#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)
if (desc->flags & ~(AV_PIX_FMT_FLAG_BE | AV_PIX_FMT_FLAG_PLANAR | AV_PIX_FMT_FLAG_ALPHA) ||
desc->nb_components < 3 ||
- (desc->comp[1].depth_minus1 != desc->comp[2].depth_minus1))
+ (desc->comp[1].depth != desc->comp[2].depth))
return 0;
for (i = 0; i < desc->nb_components; i++) {
- if (desc->comp[i].offset_plus1 != 1 ||
+ if (desc->comp[i].offset != 0 ||
desc->comp[i].shift != 0 ||
desc->comp[i].plane != i)
return 0;