id3tag.c
资源名称:NETVIDEO.rar [点击查看]
上传用户:sun1608
上传日期:2007-02-02
资源大小:6116k
文件大小:4k
源码类别:
流媒体/Mpeg4/MP4
开发平台:
Visual C++
- /*
- * functions for writing ID3 tags in LAME
- *
- * text functions stolen from mp3info by Ricardo Cerqueira <rmc@rccn.net>
- * adapted for LAME by Conrad Sanderson <c.sanderson@me.gu.edu.au>
- *
- *
- */
- #include <stdio.h>
- #include <string.h>
- #include "id3tag.h"
- ID3TAGDATA id3tag;
- /*
- * If "string" is shorter than "length", pad it with ' ' (spaces)
- */
- static void id3_pad(char *string, int length) {
- int l; l=strlen(string);
- while(l<length) { string[l] = ' '; l++; }
- string[l]=' ';
- }
- /*
- * initialize temporary fields
- */
- void id3_inittag(ID3TAGDATA *tag) {
- strcpy( tag->title, "");
- strcpy( tag->artist, "");
- strcpy( tag->album, "");
- strcpy( tag->year, "");
- strcpy( tag->comment, "");
- strcpy( tag->genre, "