Mercurial > mplayer.hg
changeset 33194:5d84566f9143
Use metadata API to fix compilation.
author | reimar |
---|---|
date | Fri, 22 Apr 2011 06:36:16 +0000 |
parents | 63e07c08041a |
children | 2f560e361175 |
files | libmpdemux/muxer_lavf.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/muxer_lavf.c Fri Apr 22 06:31:04 2011 +0000 +++ b/libmpdemux/muxer_lavf.c Fri Apr 22 06:36:16 2011 +0000 @@ -364,15 +364,15 @@ priv->oc->preload= (int)(mux_preload*AV_TIME_BASE); priv->oc->max_delay= (int)(mux_max_delay*AV_TIME_BASE); if (info_name) - av_strlcpy(priv->oc->title , info_name, sizeof(priv->oc->title )); + av_metadata_set2(&priv->oc->metadata, "title", info_name, 0); if (info_artist) - av_strlcpy(priv->oc->author , info_artist, sizeof(priv->oc->author )); + av_metadata_set2(&priv->oc->metadata, "author", info_artist, 0); if (info_genre) - av_strlcpy(priv->oc->genre , info_genre, sizeof(priv->oc->genre )); + av_metadata_set2(&priv->oc->metadata, "genre", info_genre, 0); if (info_copyright) - av_strlcpy(priv->oc->copyright, info_copyright, sizeof(priv->oc->copyright)); + av_metadata_set2(&priv->oc->metadata, "copyright", info_copyright, 0); if (info_comment) - av_strlcpy(priv->oc->comment , info_comment, sizeof(priv->oc->comment )); + av_metadata_set2(&priv->oc->metadata, "comment", info_comment, 0); if(mux_avopt){ if(parse_avopts(priv->oc, mux_avopt) < 0){