mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/tx: do not mix declarations and code
This commit is contained in:
parent
28bff6ae54
commit
6c8e841824
|
@ -455,6 +455,9 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
|
||||||
/* Flags the transform wants */
|
/* Flags the transform wants */
|
||||||
uint64_t req_flags = flags;
|
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 */
|
/* Unaligned codelets are compatible with the aligned flag */
|
||||||
if (req_flags & FF_TX_ALIGNED)
|
if (req_flags & FF_TX_ALIGNED)
|
||||||
req_flags |= AV_TX_UNALIGNED;
|
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))
|
if ((req_flags & FF_TX_ALIGNED) && (req_flags & AV_TX_UNALIGNED))
|
||||||
req_flags &= ~(FF_TX_ALIGNED | 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
|
/* Loop through all codelets in all codelet lists to find matches
|
||||||
* to the requirements */
|
* to the requirements */
|
||||||
while (codelet_list_num--) {
|
while (codelet_list_num--) {
|
||||||
|
|
Loading…
Reference in New Issue