- if(chapter_id==0 && !strcmp(type, "UTF-8")){
- if (!strcmp(name, "Author"))
- pstrcpy(s->author , sizeof(s->author) , str_value);
- else if(!strcmp(name, "Title"))
- pstrcpy(s->title , sizeof(s->title) , str_value);
- else if(!strcmp(name, "Copyright"))
- pstrcpy(s->copyright, sizeof(s->copyright), str_value);
- else if(!strcmp(name, "Description"))
- pstrcpy(s->comment , sizeof(s->comment) , str_value);
+ if (stream_id_plus1 > s->nb_streams) {
+ av_log(s, AV_LOG_ERROR, "invalid stream id for info packet\n");
+ continue;
+ }
+
+ if(!strcmp(type, "UTF-8")){
+ if(chapter_id==0 && !strcmp(name, "Disposition")) {
+ set_disposition_bits(s, str_value, stream_id_plus1 - 1);
+ continue;
+ }
+ if(metadata && strcasecmp(name,"Uses")
+ && strcasecmp(name,"Depends") && strcasecmp(name,"Replaces"))
+ av_metadata_set2(metadata, name, str_value, 0);