lavf/movenc: Add a missing assignment if memory allocation fails.
authorCarl Eugen Hoyos <cehoyos@ag.or.at>
Tue, 23 Aug 2016 19:02:57 +0000 (21:02 +0200)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Wed, 24 Aug 2016 05:38:19 +0000 (07:38 +0200)
Fixes a warning:
libavformat/movenc.c:5947:17: warning: statement with no effect [-Wunused-value]

libavformat/movenc.c

index 1f55333..9bf3a04 100644 (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);