Mercurial > libavformat.hg
changeset 4526:ae2fe097a3e0 libavformat
use new metadata API in nsv demuxer
author | aurel |
---|---|
date | Wed, 18 Feb 2009 00:02:38 +0000 |
parents | c66cf692bea0 |
children | 3aa54e7973d7 |
files | nsvdec.c |
diffstat | 1 files changed, 1 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/nsvdec.c Wed Feb 18 00:00:38 2009 +0000 +++ b/nsvdec.c Wed Feb 18 00:02:38 2009 +0000 @@ -337,15 +337,7 @@ break; *p++ = '\0'; PRINT(("NSV NSVf INFO: %s='%s'\n", token, value)); - if (!strcmp(token, "ASPECT")) { - /* don't care */ - } else if (!strcmp(token, "CREATOR") || !strcmp(token, "Author")) { - strncpy(s->author, value, 512-1); - } else if (!strcmp(token, "Copyright")) { - strncpy(s->copyright, value, 512-1); - } else if (!strcmp(token, "TITLE") || !strcmp(token, "Title")) { - strncpy(s->title, value, 512-1); - } + av_metadata_set(&s->metadata, token, value); } av_free(strings); }