[FFmpeg-cvslog] lavf/movenc: Add a missing assignment if memory allocation fails.

Carl Eugen Hoyos git at videolan.org
Wed Aug 24 08:39:10 EEST 2016


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Tue Aug 23 21:02:57 2016 +0200| [c1de1f046997f3449b56fe7480c21498cec9fad7] | committer: 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]

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c1de1f046997f3449b56fe7480c21498cec9fad7
---

 libavformat/movenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 1f55333..9bf3a04 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);



More information about the ffmpeg-cvslog mailing list