dvdnav: make mp_dvdnav_save_smpi() more robust
commit58834653c01d95196d4efa012e49fd6a1c270851
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 12 Jun 2011 09:57:07 +0000 (12 09:57 +0000)
committerUoti Urpala <uau@mplayer2.org>
Wed, 6 Jul 2011 10:00:40 +0000 (6 13:00 +0300)
tree23f8dcdead5f062e2453ed49c2081ed066c377ab
parent27a718d920e639ebbceea847fdbaf57d587a778a
dvdnav: make mp_dvdnav_save_smpi() more robust

Make mp_dvdnav_save_smpi more robust and ensure consistency of nav
buffer.

It seems that in_size could be negative sometimes, this would cause
crashes if the malloc somehow succeeded.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33599 b3059339-0415-0410-9bf9-f77b7e298cf2
mplayer.c