mem: Make av_strdup allocate using av_realloc
authorMartin Storsjö <martin@martin.st>
Fri, 4 Oct 2013 21:19:13 +0000 (00:19 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 16 Oct 2013 15:59:01 +0000 (18:59 +0300)
commitd433e1aefabd7934d9ba9ae552525faacf4e47c5
tree448e47b432912a24ba68465f2ef5cc6ace4b1e7a
parent825c7c62bb66c9ee6117e0dcb71915271faa46c6
mem: Make av_strdup allocate using av_realloc

This makes sure that pointers from av_strdup are reallocable,
which is used in av_dict_set if the AV_DICT_APPEND flag is set.

Nothing should rely on pointers from av_strdup being aligned.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavutil/mem.c