diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-30 23:30:55 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-03-30 23:30:55 +0000 |
commit | 72415b2adb2c25f95ceede49001bb97ed9247dbb (patch) | |
tree | 99247889aa61bb7621c966466ea4b84c100207d3 /libavfilter | |
parent | ca6e7708b42e7d33ba3053bcd447d52a077bca25 (diff) | |
download | ffmpeg-72415b2adb2c25f95ceede49001bb97ed9247dbb.tar.gz |
Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/avfilter.h | 2 | ||||
-rw-r--r-- | libavfilter/vf_aspect.c | 8 | ||||
-rw-r--r-- | libavfilter/vf_crop.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_format.c | 8 | ||||
-rw-r--r-- | libavfilter/vf_null.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_scale.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_slicify.c | 4 | ||||
-rw-r--r-- | libavfilter/vf_vflip.c | 4 | ||||
-rw-r--r-- | libavfilter/vsink_nullsink.c | 2 | ||||
-rw-r--r-- | libavfilter/vsrc_nullsrc.c | 2 |
10 files changed, 21 insertions, 21 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 7867cd09fd..fabc1beb82 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -280,7 +280,7 @@ struct AVFilterPad * AVFilterPad type. Only video supported now, hopefully someone will * add audio in the future. */ - enum CodecType type; + enum AVMediaType type; /** * Minimum required permissions on incoming buffers. Any buffer with diff --git a/libavfilter/vf_aspect.c b/libavfilter/vf_aspect.c index 801f927ba3..79e26998e9 100644 --- a/libavfilter/vf_aspect.c +++ b/libavfilter/vf_aspect.c @@ -86,7 +86,7 @@ AVFilter avfilter_vf_aspect = { .priv_size = sizeof(AspectContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .config_props = frameaspect_config_props, .get_video_buffer = avfilter_null_get_video_buffer, .start_frame = start_frame, @@ -94,7 +94,7 @@ AVFilter avfilter_vf_aspect = { { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, }, + .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }; #endif /* CONFIG_ASPECT_FILTER */ @@ -109,14 +109,14 @@ AVFilter avfilter_vf_pixelaspect = { .priv_size = sizeof(AspectContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = avfilter_null_get_video_buffer, .start_frame = start_frame, .end_frame = avfilter_null_end_frame }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, }, + .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }; #endif /* CONFIG_PIXELASPECT_FILTER */ diff --git a/libavfilter/vf_crop.c b/libavfilter/vf_crop.c index 69dfdea2e7..85e99c28b9 100644 --- a/libavfilter/vf_crop.c +++ b/libavfilter/vf_crop.c @@ -214,14 +214,14 @@ AVFilter avfilter_vf_crop = { .init = init, .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .start_frame = start_frame, .draw_slice = draw_slice, .get_video_buffer = avfilter_null_get_video_buffer, .config_props = config_input, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .config_props = config_output, }, { .name = NULL}}, }; diff --git a/libavfilter/vf_format.c b/libavfilter/vf_format.c index 2c84b0ab1a..36d5f4009a 100644 --- a/libavfilter/vf_format.c +++ b/libavfilter/vf_format.c @@ -103,14 +103,14 @@ AVFilter avfilter_vf_format = { .priv_size = sizeof(FormatContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer= avfilter_null_get_video_buffer, .start_frame = avfilter_null_start_frame, .draw_slice = avfilter_null_draw_slice, .end_frame = avfilter_null_end_frame, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO }, + .type = AVMEDIA_TYPE_VIDEO }, { .name = NULL}}, }; #endif /* CONFIG_FORMAT_FILTER */ @@ -133,14 +133,14 @@ AVFilter avfilter_vf_noformat = { .priv_size = sizeof(FormatContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer= avfilter_null_get_video_buffer, .start_frame = avfilter_null_start_frame, .draw_slice = avfilter_null_draw_slice, .end_frame = avfilter_null_end_frame, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO }, + .type = AVMEDIA_TYPE_VIDEO }, { .name = NULL}}, }; #endif /* CONFIG_NOFORMAT_FILTER */ diff --git a/libavfilter/vf_null.c b/libavfilter/vf_null.c index 75eba6783f..e3987ff693 100644 --- a/libavfilter/vf_null.c +++ b/libavfilter/vf_null.c @@ -30,13 +30,13 @@ AVFilter avfilter_vf_null = { .priv_size = 0, .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = avfilter_null_get_video_buffer, .start_frame = avfilter_null_start_frame, .end_frame = avfilter_null_end_frame }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, }, + .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }; diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c index 8b70d0319f..4898dc554d 100644 --- a/libavfilter/vf_scale.c +++ b/libavfilter/vf_scale.c @@ -197,13 +197,13 @@ AVFilter avfilter_vf_scale = { .priv_size = sizeof(ScaleContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .start_frame = start_frame, .draw_slice = draw_slice, .min_perms = AV_PERM_READ, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .config_props = config_props, }, { .name = NULL}}, }; diff --git a/libavfilter/vf_slicify.c b/libavfilter/vf_slicify.c index ec96db499d..e405e70e2a 100644 --- a/libavfilter/vf_slicify.c +++ b/libavfilter/vf_slicify.c @@ -104,7 +104,7 @@ AVFilter avfilter_vf_slicify = { .priv_size = sizeof(SliceContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = avfilter_null_get_video_buffer, .start_frame = start_frame, .draw_slice = draw_slice, @@ -112,6 +112,6 @@ AVFilter avfilter_vf_slicify = { .end_frame = avfilter_null_end_frame, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, }, + .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }; diff --git a/libavfilter/vf_vflip.c b/libavfilter/vf_vflip.c index 7f5299297f..3ab56b9939 100644 --- a/libavfilter/vf_vflip.c +++ b/libavfilter/vf_vflip.c @@ -91,7 +91,7 @@ AVFilter avfilter_vf_vflip = { .priv_size = sizeof(FlipContext), .inputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .get_video_buffer = get_video_buffer, .start_frame = start_frame, .draw_slice = draw_slice, @@ -99,6 +99,6 @@ AVFilter avfilter_vf_vflip = { .config_props = config_input, }, { .name = NULL}}, .outputs = (AVFilterPad[]) {{ .name = "default", - .type = CODEC_TYPE_VIDEO, }, + .type = AVMEDIA_TYPE_VIDEO, }, { .name = NULL}}, }; diff --git a/libavfilter/vsink_nullsink.c b/libavfilter/vsink_nullsink.c index d87f20400b..d11912f7dd 100644 --- a/libavfilter/vsink_nullsink.c +++ b/libavfilter/vsink_nullsink.c @@ -35,7 +35,7 @@ AVFilter avfilter_vsink_nullsink = { .inputs = (AVFilterPad[]) { { .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .start_frame = start_frame, .end_frame = end_frame, }, diff --git a/libavfilter/vsrc_nullsrc.c b/libavfilter/vsrc_nullsrc.c index ff14ea68b2..892ee1205e 100644 --- a/libavfilter/vsrc_nullsrc.c +++ b/libavfilter/vsrc_nullsrc.c @@ -74,7 +74,7 @@ AVFilter avfilter_vsrc_nullsrc = { .outputs = (AVFilterPad[]) { { .name = "default", - .type = CODEC_TYPE_VIDEO, + .type = AVMEDIA_TYPE_VIDEO, .config_props = config_props, .request_frame = request_frame, }, |