Skip to content
Snippets Groups Projects
  • Clément Bœsch's avatar
    afbeb494
    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
    History
    ffprobe: replace fmt callback with str callback.
    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).