comparison oggparsevorbis.c @ 2594:a7755990bb9c libavformat

remove duplicate Vorbis comment tag handling
author mru
date Wed, 10 Oct 2007 22:58:16 +0000
parents 7c13baaa4f87
children f9cfd91f344a
comparison
equal deleted inserted replaced
2593:16aa09b0f20f 2594:a7755990bb9c
100 av_strlcpy(as->genre, ct, sizeof(as->genre)); 100 av_strlcpy(as->genre, ct, sizeof(as->genre));
101 else if (!strcmp(tt, "TRACKNUMBER")) 101 else if (!strcmp(tt, "TRACKNUMBER"))
102 as->track = atoi(ct); 102 as->track = atoi(ct);
103 else if (!strcmp(tt, "ALBUM")) 103 else if (!strcmp(tt, "ALBUM"))
104 av_strlcpy(as->album, ct, sizeof(as->album)); 104 av_strlcpy(as->album, ct, sizeof(as->album));
105 else if (!strcmp(tt, "GENRE"))
106 av_strlcpy(as->genre, ct, sizeof(as->genre));
107 else if (!strcmp(tt, "DESCRIPTION"))
108 av_strlcpy(as->comment, ct, sizeof(as->comment));
109 } 105 }
110 } 106 }
111 107
112 if (size > 0) 108 if (size > 0)
113 av_log(as, AV_LOG_INFO, "%i bytes of comment header remain\n", size); 109 av_log(as, AV_LOG_INFO, "%i bytes of comment header remain\n", size);