Reviewed-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Use av_realloc instead of av_realloc_f to keep the original array in case of failure: it is freed in full by the fail label.