[FFmpeg-devel] [PATCH] AIFF fix in case of ANNO

Eduard Sinelnikov endushka at gmail.com
Wed Dec 27 10:56:17 EET 2017


From: Ubuntu <ubuntu at ubuntu-xenial.localdomain>

---
 libavformat/aiffdec.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libavformat/aiffdec.c b/libavformat/aiffdec.c
index 99e05c7..20decc5 100644
--- a/libavformat/aiffdec.c
+++ b/libavformat/aiffdec.c
@@ -81,11 +81,10 @@ static void get_meta(AVFormatContext *s, const char *key, int size)
             av_free(str);
             return;
         }
-        size += (size&1)-res;
+        size -= res;
         str[res] = 0;
         av_dict_set(&s->metadata, key, str, AV_DICT_DONT_STRDUP_VAL);
-    }else
-        size+= size&1;
+    }
 
     avio_skip(s->pb, size);
 }
-- 
2.7.4



More information about the ffmpeg-devel mailing list