1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavfi/ass: update use of deprecated functions, fix warnings

This commit is contained in:
Stefano Sabatini 2012-06-21 11:07:35 +02:00
parent eda4500866
commit 98701be356

View File

@ -34,6 +34,8 @@
#include "libavutil/parseutils.h" #include "libavutil/parseutils.h"
#include "drawutils.h" #include "drawutils.h"
#include "avfilter.h" #include "avfilter.h"
#include "formats.h"
#include "video.h"
typedef struct { typedef struct {
const AVClass *class; const AVClass *class;
@ -142,7 +144,7 @@ static av_cold void uninit(AVFilterContext *ctx)
static int query_formats(AVFilterContext *ctx) static int query_formats(AVFilterContext *ctx)
{ {
avfilter_set_common_pixel_formats(ctx, ff_draw_supported_pixel_formats(0)); ff_set_common_formats(ctx, ff_draw_supported_pixel_formats(0));
return 0; return 0;
} }
@ -199,8 +201,8 @@ static void end_frame(AVFilterLink *inlink)
overlay_ass_image(ass, picref, image); overlay_ass_image(ass, picref, image);
avfilter_draw_slice(outlink, 0, picref->video->h, 1); ff_draw_slice(outlink, 0, picref->video->h, 1);
avfilter_end_frame(outlink); ff_end_frame(outlink);
} }
AVFilter avfilter_vf_ass = { AVFilter avfilter_vf_ass = {
@ -214,8 +216,8 @@ AVFilter avfilter_vf_ass = {
.inputs = (const AVFilterPad[]) { .inputs = (const AVFilterPad[]) {
{ .name = "default", { .name = "default",
.type = AVMEDIA_TYPE_VIDEO, .type = AVMEDIA_TYPE_VIDEO,
.get_video_buffer = avfilter_null_get_video_buffer, .get_video_buffer = ff_null_get_video_buffer,
.start_frame = avfilter_null_start_frame, .start_frame = ff_null_start_frame,
.draw_slice = null_draw_slice, .draw_slice = null_draw_slice,
.end_frame = end_frame, .end_frame = end_frame,
.config_props = config_input, .config_props = config_input,