提交 47785b44 编写于 作者: M Michael Niedermayer

avformat/movenc: fix cleanup on insufficient reserved_moov_size

Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 c50ddc10
......@@ -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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册