* @todo support more than one output stream
*/
-/* #define DEBUG */
-
#include <float.h>
+#include <stdint.h>
+
+#include "libavutil/attributes.h"
#include "libavutil/avstring.h"
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "internal.h"
#include "video.h"
-typedef struct {
+typedef struct MovieContext {
const AVClass *class;
int64_t seek_point; ///< seekpoint in microseconds
double seek_point_d;
movie_options
};
-static int movie_init(AVFilterContext *ctx)
+static av_cold int movie_init(AVFilterContext *ctx)
{
MovieContext *movie = ctx->priv;
AVInputFormat *iformat = NULL;
{
MovieContext *movie = ctx->priv;
- av_free(movie->file_name);
- av_free(movie->format_name);
if (movie->codec_ctx)
avcodec_close(movie->codec_ctx);
if (movie->format_ctx)
{ NULL }
};
-AVFilter avfilter_vsrc_movie = {
+AVFilter ff_vsrc_movie = {
.name = "movie",
.description = NULL_IF_CONFIG_SMALL("Read from a movie source."),
.priv_size = sizeof(MovieContext),