summaryrefslogtreecommitdiff
path: root/libavutil/tx.c
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2022-01-26 04:54:49 +0100
committerLynne <dev@lynne.ee>2022-01-26 04:55:23 +0100
commit6c8e8418241551397bbb671b81430c8774d92a51 (patch)
treea7c2ee794254044b5199f68aa794afeb3ebd8686 /libavutil/tx.c
parent28bff6ae5435b0a6574067de8c129cbe7225c729 (diff)
downloadffmpeg-6c8e8418241551397bbb671b81430c8774d92a51.tar.gz
lavu/tx: do not mix declarations and code
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r--libavutil/tx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index 37785b33df..cac7815231 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -455,6 +455,9 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
/* Flags the transform wants */
uint64_t req_flags = flags;
+ /* Flags the codelet may require to be present */
+ uint64_t inv_req_mask = AV_TX_FULL_IMDCT | FF_TX_PRESHUFFLE;
+
/* Unaligned codelets are compatible with the aligned flag */
if (req_flags & FF_TX_ALIGNED)
req_flags |= AV_TX_UNALIGNED;
@@ -465,9 +468,6 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
if ((req_flags & FF_TX_ALIGNED) && (req_flags & AV_TX_UNALIGNED))
req_flags &= ~(FF_TX_ALIGNED | AV_TX_UNALIGNED);
- /* Flags the codelet may require to be present */
- uint64_t inv_req_mask = AV_TX_FULL_IMDCT | FF_TX_PRESHUFFLE;
-
/* Loop through all codelets in all codelet lists to find matches
* to the requirements */
while (codelet_list_num--) {