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>
This commit is contained in:
parent
c679a1c358
commit
ac604e446b
@ -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,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user