demux_mov: fix some memory allocation handling
commitfbd28ae9398beab022815fcc84f3b0dd47ee3372
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sun, 12 Dec 2010 12:13:01 +0000 (12 12:13 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Thu, 16 Dec 2010 04:22:19 +0000 (16 06:22 +0200)
tree055c7af73d6ff162ff5b42eec5c562cb2c92da0f
parenteb5765e96a70b19ff75f9ee18c988346b4fc48c1
demux_mov: fix some memory allocation handling

Always free before overwriting a pointer with a newly allocated one,
always use calloc instead of realloc when the previous data is not
needed.

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