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]
pull/230/head
Carl Eugen Hoyos 9 years ago
parent 61980dc479
commit c1de1f0469
  1. 2
      libavformat/movenc.c

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

Loading…
Cancel
Save