summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/metadata/oma.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/metadata/oma.c b/apps/metadata/oma.c
index 0f42a57a8c..881d81149f 100644
--- a/apps/metadata/oma.c
+++ b/apps/metadata/oma.c
@@ -148,9 +148,8 @@ int oma_read_header(int fd, struct mp3entry* id3)
148 id3->bitrate = id3->frequency * id3->bytesperframe * 8 / (1024 * 1000); 148 id3->bitrate = id3->frequency * id3->bytesperframe * 8 / (1024 * 1000);
149 149
150 /* fake the atrac3 extradata (wav format, makes stream copy to wav work) */ 150 /* fake the atrac3 extradata (wav format, makes stream copy to wav work) */
151 /* ATRAC3 expects and extra-data size of 14 bytes for wav format; extra-data size * 151 /* ATRAC3 expects and extra-data size of 14 bytes for wav format, and *
152 * is stored in ATRAC3Context before initializing the decoder. * 152 * looks for that in the id3v2buf. */
153 * We use id3v2buf to hold the (fake) extra-data provided from the container. */
154 id3->extradata_size = 14; 153 id3->extradata_size = 14;
155 AV_WL16(&id3->id3v2buf[0], 1); // always 1 154 AV_WL16(&id3->id3v2buf[0], 1); // always 1
156 AV_WL32(&id3->id3v2buf[2], id3->frequency); // samples rate 155 AV_WL32(&id3->id3v2buf[2], id3->frequency); // samples rate