diff mbox

[FFmpeg-devel] AIFF fix in case of ANNO

Message ID 1514364977-20925-1-git-send-email-endushka@gmail.com
State Accepted
Commit 7fcbebbeafd106d5bab82b272076f7ceb5bc4a73
Headers show

Commit Message

Eduard Sinelnikov Dec. 27, 2017, 8:56 a.m. UTC
From: Ubuntu <ubuntu@ubuntu-xenial.localdomain>

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

Comments

Moritz Barsnick Dec. 27, 2017, 8:46 p.m. UTC | #1
On Wed, Dec 27, 2017 at 08:56:17 +0000, Eduard Sinelnikov wrote:

> Subject: [PATCH] AIFF fix in case of ANNO

You should be a bit more precise as to what was wrong and how it was
fixed. Also please use the prefix "avformat/aiffdec: ", see other
commits in the repo.

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

I'm certain that this email address will not be accepted as a
committer. You should set up a proper address in your git config. (Your
git client should have warned you about this.)

Moritz
diff mbox

Patch

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);
 }