Commit e0686318 authored by nu774's avatar nu774 Committed by Michael Niedermayer

avformat/vapoursynth: properly initialize err variable in read_header_vs()

The variable "err" is not initialized, and set only when something went wrong.
When everything is OK, nobody sets it, so using it result in UB.
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 4fd6df69
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment