ID3v2_ENCODING_UTF8;
int i, ret;
+ ff_standardize_creation_time(s);
if ((ret = write_metadata(s->pb, &s->metadata, id3, enc)) < 0)
return ret;
/* get the mimetype*/
while (mime->id != AV_CODEC_ID_NONE) {
- if (mime->id == st->codec->codec_id) {
+ if (mime->id == st->codecpar->codec_id) {
mimetype = mime->str;
break;
}