• Clément Bœsch's avatar
    ffprobe: replace fmt callback with str callback. · afbeb494
    Clément Bœsch authored
    Having a string callback is much more simpler than a variable args
    one for writers to deal with, especially when dealing with escaping.
    
    This patch also introduces a local fast_asprintf() function which is
    similar to av_asprintf() but avoids reallocating at each print (leading
    to a performance issue).
    afbeb494
ffprobe.c 18.6 KB