*/
#include "avfilter.h"
+#include "formats.h"
+#include "video.h"
#include "libavutil/common.h"
#include "libavutil/mem.h"
#include "libavutil/pixdesc.h"
av_free(angles);
}
-static av_cold int init(AVFilterContext *ctx, const char *args, void *opaque)
+static av_cold int init(AVFilterContext *ctx, const char *args)
{
DeshakeContext *deshake = ctx->priv;
char filename[256] = {0};
PIX_FMT_YUVJ444P, PIX_FMT_YUVJ440P, PIX_FMT_NONE
};
- avfilter_set_common_pixel_formats(ctx, avfilter_make_format_list(pix_fmts));
+ ff_set_common_formats(ctx, ff_make_format_list(pix_fmts));
return 0;
}
avfilter_unref_buffer(deshake->ref);
if (deshake->fp)
fclose(deshake->fp);
- avcodec_close(deshake->avctx);
+ if (deshake->avctx)
+ avcodec_close(deshake->avctx);
av_freep(&deshake->avctx);
}
deshake->ref = in;
// Draw the transformed frame information
- avfilter_draw_slice(link->dst->outputs[0], 0, link->h, 1);
- avfilter_end_frame(link->dst->outputs[0]);
+ ff_draw_slice(link->dst->outputs[0], 0, link->h, 1);
+ ff_end_frame(link->dst->outputs[0]);
avfilter_unref_buffer(out);
}