mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-27 17:53:13 +00:00
avconv: use correct index when selecting metadata to write to.
This commit is contained in:
parent
f39ecc79aa
commit
4bb3ae1eaa
4
avconv.c
4
avconv.c
@ -3571,14 +3571,14 @@ static void opt_output_file(void *optctx, const char *filename)
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid stream index %d in metadata specifier.\n", index);
|
||||
exit_program(1);
|
||||
}
|
||||
m = &oc->streams[i]->metadata;
|
||||
m = &oc->streams[index]->metadata;
|
||||
break;
|
||||
case 'c':
|
||||
if (index < 0 || index >= oc->nb_chapters) {
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid chapter index %d in metadata specifier.\n", index);
|
||||
exit_program(1);
|
||||
}
|
||||
m = &oc->chapters[i]->metadata;
|
||||
m = &oc->chapters[index]->metadata;
|
||||
break;
|
||||
default:
|
||||
av_log(NULL, AV_LOG_ERROR, "Invalid metadata specifier %s.\n", o->metadata[i].specifier);
|
||||
|
Loading…
Reference in New Issue
Block a user