mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/movenc: Fix use of uninitialized variable (ret)
Fixed CID1270823 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
8b96e8dd28
commit
9e008ed1b4
|
@ -4946,8 +4946,10 @@ static int mov_write_header(AVFormatContext *s)
|
|||
else if (!TAG_IS_AVCI(track->tag)){
|
||||
track->vos_len = st->codec->extradata_size;
|
||||
track->vos_data = av_malloc(track->vos_len);
|
||||
if (!track->vos_data)
|
||||
if (!track->vos_data) {
|
||||
ret = AVERROR(ENOMEM);
|
||||
goto error;
|
||||
}
|
||||
memcpy(track->vos_data, st->codec->extradata, track->vos_len);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue