diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-09-05 14:12:28 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-09-11 17:30:05 +0200 |
commit | 4bb3ae1eaa170add52232519c43226ef773c214f (patch) | |
tree | c7243c45d39adb0152b6411588407ddb0f4d605a | |
parent | f39ecc79aa769677777fc3d6b8de6440bcda3c3f (diff) | |
download | ffmpeg-4bb3ae1eaa170add52232519c43226ef773c214f.tar.gz |
avconv: use correct index when selecting metadata to write to.
-rw-r--r-- | avconv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |