ref: dab6333dcddf2a77a6d46430356a1d2a0fc3652c
parent: 3ba2093c9e8dedeed94155a98e343781d2f85816
author: knik <knik@users.sourceforge.net>
date: Tue Jul 25 03:59:07 EDT 2017
--compilation option fix
--- a/frontend/mp4write.c
+++ b/frontend/mp4write.c
@@ -543,6 +543,22 @@
return size;
}
+static int tagu8(char *tagname, int n /*number of stored fields*/)
+{
+ int numsize = n * 1;
+ int size = 0;
+ int datasize = numsize + 16;
+
+ size += u32out(datasize + 8);
+ size += dataout(tagname, 4);
+ size += u32out(datasize);
+ size += dataout("data", 4);
+ size += u32out(0x15); // data type uint8
+ size += u32out(0);
+
+ return size;
+}
+
static int tagimage(char *tagname, int n /*image size*/)
{
int numsize = n;
@@ -609,8 +625,8 @@
size += tagtxt("\xa9" "alb", mp4config.tag.album);
if (mp4config.tag.compilation)
{
- size += tagu16("cpil", 1);
- size += u16out(mp4config.tag.compilation);
+ size += tagu8("cpil", 1);
+ size += u8out(mp4config.tag.compilation);
}
if (mp4config.tag.trackno)
{