Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-01-25 16:28:43 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-01-25 16:28:43 +0300
commit47785b44b554bb4d93e28cbfa114ef8a51d32203 (patch)
treef23a3211c98bb0c416d1e4d99a9bca294ba8a20e /libavformat
parentc50ddc10b2f00220a8c7ad2006dded6bb811e6da (diff)
avformat/movenc: fix cleanup on insufficient reserved_moov_size
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 29535cdaeb..8b0662321e 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -5160,7 +5160,8 @@ static int mov_write_trailer(AVFormatContext *s)
size = mov->reserved_moov_size - (avio_tell(pb) - mov->reserved_moov_pos);
if (size < 8){
av_log(s, AV_LOG_ERROR, "reserved_moov_size is too small, needed %"PRId64" additional\n", 8-size);
- return -1;
+ res = AVERROR(EINVAL);
+ goto error;
}
avio_wb32(pb, size);
ffio_wfourcc(pb, "free");