mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
use new metadata API in nsv demuxer
Originally committed as revision 17407 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4b358c3e60
commit
a233eaa618
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user