X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=libavformat%2Fvapoursynth.c;h=4ec4e77b59e390a68fcebec03872e8d7627e3df1;hb=92769f260da8bf38956212cc6a26f98bcf80c6c7;hp=f3ad6910e58361438fd1a8100114dc948adad7c6;hpb=2d62e06ff6a9f3dbd78136c1dc4a315a727c6f00;p=ffmpeg diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c index f3ad6910e58..4ec4e77b59e 100644 --- a/libavformat/vapoursynth.c +++ b/libavformat/vapoursynth.c @@ -177,7 +177,7 @@ static av_cold int read_header_vs(AVFormatContext *s) char dummy; const VSVideoInfo *info; struct VSState *vss_state; - int err; + int err = 0; vss_state = av_mallocz(sizeof(*vss_state)); if (!vss_state) { @@ -469,7 +469,7 @@ static int read_seek_vs(AVFormatContext *s, int stream_idx, int64_t ts, int flag return 0; } -static av_cold int probe_vs(AVProbeData *p) +static av_cold int probe_vs(const AVProbeData *p) { // Explicitly do not support this. VS scripts are written in Python, and // can run arbitrary code on the user's system. @@ -483,7 +483,7 @@ static const AVClass class_vs = { .version = LIBAVUTIL_VERSION_INT, }; -AVInputFormat ff_vapoursynth_demuxer = { +const AVInputFormat ff_vapoursynth_demuxer = { .name = "vapoursynth", .long_name = NULL_IF_CONFIG_SMALL("VapourSynth demuxer"), .priv_data_size = sizeof(VSContext),