diff --git a/spa/plugins/ffmpeg/ffmpeg-dec.c b/spa/plugins/ffmpeg/ffmpeg-dec.c index 245e3a872..20952bf34 100644 --- a/spa/plugins/ffmpeg/ffmpeg-dec.c +++ b/spa/plugins/ffmpeg/ffmpeg-dec.c @@ -38,6 +38,8 @@ #include #include +#include "ffmpeg.h" + #define IS_VALID_PORT(this,d,id) ((id) == 0) #define GET_IN_PORT(this,p) (&this->in_ports[p]) #define GET_OUT_PORT(this,p) (&this->out_ports[p]) diff --git a/spa/plugins/ffmpeg/ffmpeg-enc.c b/spa/plugins/ffmpeg/ffmpeg-enc.c index b9f2f277b..008db7b68 100644 --- a/spa/plugins/ffmpeg/ffmpeg-enc.c +++ b/spa/plugins/ffmpeg/ffmpeg-enc.c @@ -37,6 +37,8 @@ #include #include +#include "ffmpeg.h" + #define IS_VALID_PORT(this,d,id) ((id) == 0) #define GET_IN_PORT(this,p) (&this->in_ports[p]) #define GET_OUT_PORT(this,p) (&this->out_ports[p]) diff --git a/spa/plugins/ffmpeg/ffmpeg.c b/spa/plugins/ffmpeg/ffmpeg.c index 39ec93e71..f91979128 100644 --- a/spa/plugins/ffmpeg/ffmpeg.c +++ b/spa/plugins/ffmpeg/ffmpeg.c @@ -30,10 +30,7 @@ #include -int spa_ffmpeg_dec_init(struct spa_handle *handle, const struct spa_dict *info, - const struct spa_support *support, uint32_t n_support); -int spa_ffmpeg_enc_init(struct spa_handle *handle, const struct spa_dict *info, - const struct spa_support *support, uint32_t n_support); +#include "ffmpeg.h" static int ffmpeg_dec_init(const struct spa_handle_factory *factory, diff --git a/spa/plugins/ffmpeg/ffmpeg.h b/spa/plugins/ffmpeg/ffmpeg.h new file mode 100644 index 000000000..e0ef98f27 --- /dev/null +++ b/spa/plugins/ffmpeg/ffmpeg.h @@ -0,0 +1,16 @@ +#ifndef SPA_FFMPEG_H +#define SPA_FFMPEG_H + +#include +#include + +struct spa_dict; +struct spa_handle; +struct spa_support; + +int spa_ffmpeg_dec_init(struct spa_handle *handle, const struct spa_dict *info, + const struct spa_support *support, uint32_t n_support); +int spa_ffmpeg_enc_init(struct spa_handle *handle, const struct spa_dict *info, + const struct spa_support *support, uint32_t n_support); + +#endif