diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-12-05 19:27:15 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2022-01-11 15:15:52 +0100 |
commit | ab8830e3489199d71f6349794062040dcb541b8c (patch) | |
tree | 0f7120748c344d1c4b39d815cceaad48697a69ce | |
parent | 703937c494bfb7fe74ea22c361e9444eaa65c61e (diff) | |
download | ffmpeg-ab8830e3489199d71f6349794062040dcb541b8c.tar.gz |
avformat/aadec: Don't use the same loop counter in inner and outer loop
Due to this bush.aa (from the FATE suite) exported garbage metadata
with key "_040930".
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
(cherry picked from commit 0a76f8217e0d80d336ad8d9c46523fd3d1262c8c)
-rw-r--r-- | libavformat/aadec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/aadec.c b/libavformat/aadec.c index 2575e98153..90796c9599 100644 --- a/libavformat/aadec.c +++ b/libavformat/aadec.c @@ -130,8 +130,8 @@ static int aa_read_header(AVFormatContext *s) AV_WB32(&header_key[idx * 4], header_key_part[idx]); // convert each part to BE! } av_log(s, AV_LOG_DEBUG, "Processed HeaderKey is "); - for (i = 0; i < 16; i++) - av_log(s, AV_LOG_DEBUG, "%02x", header_key[i]); + for (int j = 0; j < 16; j++) + av_log(s, AV_LOG_DEBUG, "%02x", header_key[j]); av_log(s, AV_LOG_DEBUG, "\n"); } else { av_dict_set(&s->metadata, key, val, 0); |