diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-01-05 23:39:46 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-01-05 23:39:46 +0100 |
commit | 1a34103f0f22a85c593baa5905be6a4bef9b975a (patch) | |
tree | e44aca70ecb2cba3e8c13112b713da9bc8d1483d /libavformat/mmf.c | |
parent | 39d18754559697bc72d6830b10446b807f957744 (diff) | |
download | ffmpeg-1a34103f0f22a85c593baa5905be6a4bef9b975a.tar.gz |
mmf.c: Use LIBAVFORMAT_IDENT when writing Yamaha SMAF version information.
Diffstat (limited to 'libavformat/mmf.c')
-rw-r--r-- | libavformat/mmf.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mmf.c b/libavformat/mmf.c index a63d8cb30a..cb2ab0ba6a 100644 --- a/libavformat/mmf.c +++ b/libavformat/mmf.c @@ -68,6 +68,9 @@ static int mmf_write_header(AVFormatContext *s) AVIOContext *pb = s->pb; int64_t pos; int rate; + const char *version = s->streams[0]->codec->flags & CODEC_FLAG_BITEXACT ? + "VN:Lavf," : + "VN:"LIBAVFORMAT_IDENT","; rate = mmf_rate_code(s->streams[0]->codec->sample_rate); if(rate < 0) { @@ -85,7 +88,7 @@ static int mmf_write_header(AVFormatContext *s) avio_w8(pb, 0); /* counts */ end_tag_be(pb, pos); pos = ff_start_tag(pb, "OPDA"); - avio_write(pb, "VN:libavcodec,", sizeof("VN:libavcodec,") -1); /* metadata ("ST:songtitle,VN:version,...") */ + avio_write(pb, version, strlen(version)); /* metadata ("ST:songtitle,VN:version,...") */ end_tag_be(pb, pos); avio_write(pb, "ATR\x00", 4); |