[FFmpeg-devel] [PATCH v2 0/3] fftools/textformat: Cleanup work

ffmpegagent ffmpegagent at gmail.com
Fri Jul 4 22:29:22 EEST 2025


The first patch is purely a rename. I had deferred it since the previous
patchset was quite massive already.

The second patch removes unnecessary casts as promised earlier.


Versions
========


V2
==

 * Fix Windows GCC build

.

softworkz (3):
  fftools/textformat: Rename variables wctx to tctx
  fftools/textformat: Remove redundant casts
  fftools/textformat: Cleanup unneeded includes

 fftools/graph/graphprint.c         |  14 +-
 fftools/resources/resman.c         |   6 +-
 fftools/textformat/avtextformat.c  |  10 +-
 fftools/textformat/avtextwriters.h |   1 -
 fftools/textformat/tf_compact.c    |  78 +++++------
 fftools/textformat/tf_default.c    |  48 +++----
 fftools/textformat/tf_flat.c       |  38 ++---
 fftools/textformat/tf_ini.c        |  36 ++---
 fftools/textformat/tf_json.c       |  84 +++++------
 fftools/textformat/tf_mermaid.c    | 214 ++++++++++++++---------------
 fftools/textformat/tf_mermaid.h    |   2 +-
 fftools/textformat/tf_xml.c        |  82 +++++------
 fftools/textformat/tw_avio.c       |   3 -
 fftools/textformat/tw_buffer.c     |   3 -
 fftools/textformat/tw_stdout.c     |   3 -
 15 files changed, 303 insertions(+), 319 deletions(-)


base-commit: 11d1b71c311d1a1432a280e0e1ee7bc0ba91d671
Published-As: https://github.com/ffstaging/FFmpeg/releases/tag/pr-ffstaging-104%2Fsoftworkz%2Fsubmit_avtext_validation-v2
Fetch-It-Via: git fetch https://github.com/ffstaging/FFmpeg pr-ffstaging-104/softworkz/submit_avtext_validation-v2
Pull-Request: https://github.com/ffstaging/FFmpeg/pull/104

Range-diff vs v1:

 1:  8c97d3273e = 1:  8c97d3273e fftools/textformat: Rename variables wctx to tctx
 2:  cd25321a5d ! 2:  41fce03370 fftools/textformat: Remove redundant casts
     @@ fftools/graph/graphprint.c: static void print_filtergraph_single(GraphPrintConte
       
               if (ofilter->filter) {
                   print_id("filter_id", ofilter->filter->name);
     -@@ fftools/graph/graphprint.c: static int print_streams(GraphPrintContext *gpc, InputFile **ifiles, int nb_ifil
     - 
     -     for (int n = nb_ofiles - 1; n >= 0; n--) {
     -         OutputFile *of = ofiles[n];
     --        Muxer *muxer = (Muxer *)of;
     -+        Muxer *muxer = of;
     - 
     -         if (!muxer->fc)
     -             continue;
      @@ fftools/graph/graphprint.c: static int print_filtergraphs_priv(FilterGraph **graphs, int nb_graphs, InputFil
                       goto cleanup;
                   }
 3:  b814d08c59 = 3:  3fa8bff93b fftools/textformat: Cleanup unneeded includes

-- 
ffmpeg-codebot


More information about the ffmpeg-devel mailing list