aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/src_movie.c
diff options
context:
space:
mode:
authorAlexander Strasser <eclipse7@gmx.net>2013-06-16 21:44:02 +0200
committerAlexander Strasser <eclipse7@gmx.net>2013-06-18 00:02:30 +0200
commitac604e446b5e0031fad42ab190cc2019a898c241 (patch)
treee3032f28f16e98a087bf2faf1a2967e02de21ce5 /libavfilter/src_movie.c
parentc679a1c358c30ec38ae3b1ac3ee2c62efc2f32e2 (diff)
downloadffmpeg-ac604e446b5e0031fad42ab190cc2019a898c241.tar.gz
lavfi/src_movie: Use movie_common_init instead individual wrappers
Makes it easier to understand that there is no difference in init callback for movie and amovie. Also saves a few lines of code. Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
Diffstat (limited to 'libavfilter/src_movie.c')
-rw-r--r--libavfilter/src_movie.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libavfilter/src_movie.c b/libavfilter/src_movie.c
index f52d3a42c6..7d3ce7813c 100644
--- a/libavfilter/src_movie.c
+++ b/libavfilter/src_movie.c
@@ -563,17 +563,12 @@ static int movie_request_frame(AVFilterLink *outlink)
AVFILTER_DEFINE_CLASS(movie);
-static av_cold int movie_init(AVFilterContext *ctx)
-{
- return movie_common_init(ctx);
-}
-
AVFilter avfilter_avsrc_movie = {
.name = "movie",
.description = NULL_IF_CONFIG_SMALL("Read from a movie source."),
.priv_size = sizeof(MovieContext),
.priv_class = &movie_class,
- .init = movie_init,
+ .init = movie_common_init,
.uninit = movie_uninit,
.query_formats = movie_query_formats,
@@ -589,16 +584,11 @@ AVFilter avfilter_avsrc_movie = {
#define amovie_options movie_options
AVFILTER_DEFINE_CLASS(amovie);
-static av_cold int amovie_init(AVFilterContext *ctx)
-{
- return movie_common_init(ctx);
-}
-
AVFilter avfilter_avsrc_amovie = {
.name = "amovie",
.description = NULL_IF_CONFIG_SMALL("Read audio from a movie source."),
.priv_size = sizeof(MovieContext),
- .init = amovie_init,
+ .init = movie_common_init,
.uninit = movie_uninit,
.query_formats = movie_query_formats,