Commit c1de1f04 authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

lavf/movenc: Add a missing assignment if memory allocation fails.

Fixes a warning:
libavformat/movenc.c:5947:17: warning: statement with no effect [-Wunused-value]
parent 61980dc4
......@@ -5944,7 +5944,7 @@ static int mov_write_trailer(AVFormatContext *s)
track->vos_len = par->extradata_size;
track->vos_data = av_malloc(track->vos_len);
if (!track->vos_data) {
AVERROR(ENOMEM);
res = AVERROR(ENOMEM);
goto error;
}
memcpy(track->vos_data, par->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