1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00

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]
This commit is contained in:
Carl Eugen Hoyos 2016-08-23 21:02:57 +02:00
parent 61980dc479
commit c1de1f0469

View File

@ -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);