Free extradata before reallocating.
authorDale Curtis <dalecurtis@chromium.org>
Tue, 21 Nov 2017 23:10:08 +0000 (15:10 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 28 Nov 2017 20:42:48 +0000 (21:42 +0100)
commit96e340760824e537e2d034abf9a3b8be3e2b312c
tree22ebd81055402857eeb08558513e22508f001ce6
parentb3cb9bd43fa33a8aaf7a63e43f8418975b3bf0de
Free extradata before reallocating.

Otherwise ff_alloc_extradata() just leaks any existing allocated
memory.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggparseogm.c