aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-23 21:02:57 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2016-08-24 07:38:19 +0200
commitc1de1f046997f3449b56fe7480c21498cec9fad7 (patch)
treed8cc65db560360352a8ea17dcb883eb230b5e85f
parent61980dc479ce045d2e280bff0ba2118ccb8ce595 (diff)
downloadffmpeg-c1de1f046997f3449b56fe7480c21498cec9fad7.tar.gz
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]
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1f55333c32..9bf3a04c6b 100644
--- a/libavformat/movenc.c
+++ b/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);