diff options
author | softworkz <softworkz@hotmail.com> | 2025-04-29 02:07:30 +0200 |
---|---|---|
committer | softworkz <softworkz@hotmail.com> | 2025-05-15 23:04:44 +0200 |
commit | 5f90eea8a8d97bf07f6ee101f8a786ef3e3a1d43 (patch) | |
tree | 3f1b6c1cfd06140c605679e220cf6db8e1a8d9ad /fftools/textformat/tf_xml.c | |
parent | 8f42d90413f64574b8e15de27fc2430102843dbf (diff) | |
download | ffmpeg-5f90eea8a8d97bf07f6ee101f8a786ef3e3a1d43.tar.gz |
fftools/textformat: Apply quality improvements
Perform multiple improvements to increase code robustness.
In particular:
- favor unsigned counters for loops
- add missing checks
- avoid possible leaks
- move variable declarations to inner scopes when feasible
- provide explicit type-casting when needed
Signed-off-by: softworkz <softworkz@hotmail.com>
Diffstat (limited to 'fftools/textformat/tf_xml.c')
-rw-r--r-- | fftools/textformat/tf_xml.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fftools/textformat/tf_xml.c b/fftools/textformat/tf_xml.c index befb39246d..28abfc6400 100644 --- a/fftools/textformat/tf_xml.c +++ b/fftools/textformat/tf_xml.c @@ -18,10 +18,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <limits.h> -#include <stdarg.h> #include <stdint.h> -#include <stdio.h> #include <string.h> #include "avtextformat.h" |