diff options
author | nu774 <honeycomb77@gmail.com> | 2019-01-04 02:17:02 +0900 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-04 14:58:19 +0100 |
commit | e0686318ddd7a5138d1847d97fe967fb2e813802 (patch) | |
tree | e04b59ed4f866a14a47cd3c2bd2dc940337b1760 | |
parent | 4fd6df6934d1e4f8ad20626b59db109a76c192d7 (diff) | |
download | ffmpeg-streaming-e0686318ddd7a5138d1847d97fe967fb2e813802.zip ffmpeg-streaming-e0686318ddd7a5138d1847d97fe967fb2e813802.tar.gz |
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: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/vapoursynth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vapoursynth.c b/libavformat/vapoursynth.c index f3ad691..69fde1a 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) { |