/*
- * Copyright (C) 2006-2007 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
*
* Licensed under the GPL v2. For licencing details see COPYING.
*/
/*
* Init m4a file and write some tech data to given pointers.
*/
-static int aac_get_file_info(char *map, size_t numbytes,
+static int aac_get_file_info(char *map, size_t numbytes, __a_unused int fd,
struct afh_info *afhi)
{
int i;
ret = (afhi->chunk_table[afhi->chunks_total] - afhi->chunk_table[0]) * 8; /* bits */
ret += (channels * afhi->seconds_total * 500); /* avoid rounding error */
afhi->bitrate = ret / (channels * afhi->seconds_total * 1000);
- sprintf(afhi->info_string, "%s:\n%s:\n%s:\n",
+ afhi->info_string = make_message("%s:\n%s:\n%s:\n",
status_item_list[SI_AUDIO_FILE_INFO],
- status_item_list[SI_TAG_INFO1],
- status_item_list[SI_TAG_INFO2]
+ status_item_list[SI_TAGINFO1],
+ status_item_list[SI_TAGINFO2]
);
tv_scale(20, &afhi->chunk_tv, &afhi->eof_tv);
ret = 1;