OSDN Git Service

avformat/apetag: fix flag value to signal footer presence
authorJames Almer <jamrial@gmail.com>
Fri, 10 Feb 2017 03:53:39 +0000 (00:53 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 10 Feb 2017 21:33:29 +0000 (18:33 -0300)
commite8d6fef3161f35878f8e0abf9d27d2c45a5d40b6
tree026bda03cca04673b18dcfe4e2f97faa301f68b7
parentba632efa93eff2550bcc465190efd05a46116ce6
avformat/apetag: fix flag value to signal footer presence

According to the spec[1], a value of 0 means the footer is present and a value
of 1 means it's absent, the exact opposite of header presence flag where 1
means present and 0 absent.
The reason for this is compatibility with APEv1 tags, where there's no header,
footer presence was mandatory for all files, and the flags field was a zeroed
reserved field.

[1] http://wiki.hydrogenaud.io/index.php?title=Ape_Tags_Flags

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/apetag.c
tests/ref/lavf/tta