diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-27 19:49:26 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-27 19:49:26 +0300 |
commit | c675f974b1787097237be644f77ba1d40385e425 (patch) | |
tree | b7bf6e322b9a1afbc03f6952c0268212477cfd45 /src/idop.c | |
parent | 2c553ede1ca6293d44e6b909d8824c7938ce5c31 (diff) | |
download | idest-c675f974b1787097237be644f77ba1d40385e425.tar.gz idest-c675f974b1787097237be644f77ba1d40385e425.tar.bz2 |
Add full support for APIC frames.
* src/frametab.gperf: Support APIC.
* src/idop.c (field_binary_from_string): Accept lowercase
hex digits.
* scheme/idest/batch/setpic.scm: New batch.
* scheme/idest/format/pic.scm: Use named elements.
Diffstat (limited to 'src/idop.c')
-rw-r--r-- | src/idop.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -17,6 +17,7 @@ #include "idest.h" #include <file.h> #include <signal.h> +#include <ctype.h> gl_list_t input_list, output_list, filter_list; @@ -141,8 +142,9 @@ describe_frame(const struct idest_frametab *ft, void *data) for (i = 0; i < ft->qc; i++) n += printf(":%s", ft->qv[i]); } - while (++n < DESCR_COLUMN) + do putchar(' '); + while (n++ < DESCR_COLUMN); printf("%s\n", frametype->description); return 0; @@ -251,7 +253,7 @@ field_binary_from_string(union id3_field *field, const char *str) unsigned char b; char *p; - p = strchr(xdig, *str++); + p = strchr(xdig, toupper(*str++)); if (!p) { free(field->binary.data); field->binary.length = 0; @@ -260,7 +262,7 @@ field_binary_from_string(union id3_field *field, const char *str) } b = (p - xdig) << 4; - p = strchr(xdig, *str++); + p = strchr(xdig, toupper(*str++)); if (!p) { free(field->binary.data); field->binary.length = 0; |