mov: Fix negative size calculation in mov_read_default().
The previous code assumed if an atom was marked with a 64-bit size extension, it actually had that data available. The new code verfies there's enough data in the atom for this to be done. Failure to verify causes total_size > atom.size which will result in negative size calculations later on. Found-by: NPaul Mehta <paul@paulmehta.com> Signed-off-by: NDale Curtis <dalecurtis@chromium.org> Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
Showing
想要评论请 注册 或 登录