diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-18 00:02:38 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-18 00:02:38 +0000 |
commit | a233eaa618b8d94cfb46bd0b6b0ad911f368a44e (patch) | |
tree | dc36509dd36b0cb28e17e2dd7b8a319c59835ec9 | |
parent | 4b358c3e60bfeb3d1d0912c49480b53d10277264 (diff) | |
download | ffmpeg-a233eaa618b8d94cfb46bd0b6b0ad911f368a44e.tar.gz |
use new metadata API in nsv demuxer
Originally committed as revision 17407 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/nsvdec.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c index 4f09e6a7f3..719337c898 100644 --- a/libavformat/nsvdec.c +++ b/libavformat/nsvdec.c @@ -337,15 +337,7 @@ static int nsv_parse_NSVf_header(AVFormatContext *s, AVFormatParameters *ap) 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); } |