summaryrefslogtreecommitdiff
path: root/libavutil
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-01-28 08:08:58 +0100
committerLynne <dev@lynne.ee>2022-01-28 08:28:02 +0100
commit95f02e43e16f0fa2bb4c390da77718ee614f40dd (patch)
treefc075e047d4ad16828ea98d1ff1844bd1105854b /libavutil
parent9887ec3e9bf81ad7680539d9361187dc4bcd2fb3 (diff)
lavu/tx: print debug info even if no transforms are found
Diffstat (limited to 'libavutil')
-rw-r--r--libavutil/tx.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index 06e8958283..a299408ed4 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -543,13 +543,6 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
}
}
- /* No matches found */
- if (!nb_cd_matches)
- return AVERROR(ENOSYS);
-
- /* Sort the list */
- AV_QSORT(cd_matches, nb_cd_matches, TXCodeletMatch, cmp_matches);
-
/* Print debugging info */
av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC);
av_bprintf(&bp, "For transform of length %i, %s, ", len,
@@ -557,7 +550,16 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
print_type(&bp, type);
av_bprintf(&bp, ", ");
print_flags(&bp, flags);
- av_bprintf(&bp, ", found %i matches:", nb_cd_matches);
+ av_bprintf(&bp, ", found %i matches%s", nb_cd_matches,
+ nb_cd_matches ? ":" : ".");
+
+ /* No matches found */
+ if (!nb_cd_matches)
+ return AVERROR(ENOSYS);
+
+ /* Sort the list */
+ AV_QSORT(cd_matches, nb_cd_matches, TXCodeletMatch, cmp_matches);
+
av_log(NULL, AV_LOG_VERBOSE, "%s\n", bp.str);
for (int i = 0; i < nb_cd_matches; i++) {