Commit 9e008ed1 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/movenc: Fix use of uninitialized variable (ret)

Fixed CID1270823
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8b96e8dd
...@@ -4946,8 +4946,10 @@ static int mov_write_header(AVFormatContext *s) ...@@ -4946,8 +4946,10 @@ static int mov_write_header(AVFormatContext *s)
else if (!TAG_IS_AVCI(track->tag)){ else if (!TAG_IS_AVCI(track->tag)){
track->vos_len = st->codec->extradata_size; track->vos_len = st->codec->extradata_size;
track->vos_data = av_malloc(track->vos_len); track->vos_data = av_malloc(track->vos_len);
if (!track->vos_data) if (!track->vos_data) {
ret = AVERROR(ENOMEM);
goto error; goto error;
}
memcpy(track->vos_data, st->codec->extradata, track->vos_len); memcpy(track->vos_data, st->codec->extradata, track->vos_len);
} }
} }
......
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