avformat/aadec: Don't unnecessarily reinitialize AVTEA context
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 5 Dec 2021 20:08:06 +0000 (21:08 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Wed, 8 Dec 2021 12:47:04 +0000 (13:47 +0100)
commitc9b30992102bbc4120b5c0139d1aa8a2dbb2ebb0
treea94e566c93b951df271892cc6a89f4f3e5994c38
parenta0900a318a60e38ffeb14c322b09f98fcbd97c73
avformat/aadec: Don't unnecessarily reinitialize AVTEA context

We use ECB, not CBC mode here, so one does not need to reinitialize
the context; for the same reason, one can also just let av_tea_crypt()
loop over the blocks, avoiding a loop here.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
libavformat/aadec.c