mov: do not misreport empty stts
authorLuca Barbato <lu_zero@gentoo.org>
Tue, 11 Oct 2011 08:14:06 +0000 (10:14 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Tue, 11 Oct 2011 13:06:50 +0000 (15:06 +0200)
commit30c3d976f12665d5d13971172aab062a97cb1bce
tree1a47e21848d01f2d51d1fa49f9b8769558d7e988
parent5a7ba58657bda249ac625456577651ab98a9d231
mov: do not misreport empty stts

Return -1 instead of ENOMEM if entries is 0.
Fixes a av_malloc(0) crash in macosx.
libavformat/mov.c