oggparsevorbis: use av_realloc consistently
authorPaweł Hajdan, Jr <phajdan@google.com>
Thu, 10 Jan 2013 18:24:01 +0000 (10:24 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 30 Jan 2013 18:54:35 +0000 (19:54 +0100)
commit0451ff295a9f5194c2dee87a9a704b6dcd144ddb
tree585a71080b5f9f02baa1512684783993d8bf433f
parent4a2da83a787b24c4027aa963d9db9b453e91f413
oggparsevorbis: use av_realloc consistently

Memory passed to av_realloc cannot be allocated using memalign.

From realloc(3):

The realloc() function changes the size of the memory block pointed to
by ptr to size bytes. (...) Unless ptr is NULL, it must have been returned
by an earlier call to malloc(), calloc() or realloc().

The issue has been found by debugallocation, a part of google-perftools:
http://code.google.com/p/gperftools/ .

Signed-off-by: Paweł Hajdan, Jr <phajdan@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparsevorbis.c