Skip to content
Snippets Groups Projects
Commit e6674f68 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

avconv: make negative mappings disable only streams from the specified file

parent 5463e83d
No related branches found
No related tags found
No related merge requests found
...@@ -2638,7 +2638,8 @@ static int opt_map(OptionsContext *o, const char *opt, const char *arg) ...@@ -2638,7 +2638,8 @@ static int opt_map(OptionsContext *o, const char *opt, const char *arg)
/* disable some already defined maps */ /* disable some already defined maps */
for (i = 0; i < o->nb_stream_maps; i++) { for (i = 0; i < o->nb_stream_maps; i++) {
m = &o->stream_maps[i]; m = &o->stream_maps[i];
if (check_stream_specifier(input_files[m->file_index].ctx, if (file_idx == m->file_index &&
check_stream_specifier(input_files[m->file_index].ctx,
input_files[m->file_index].ctx->streams[m->stream_index], input_files[m->file_index].ctx->streams[m->stream_index],
*p == ':' ? p + 1 : p) > 0) *p == ':' ? p + 1 : p) > 0)
m->disabled = 1; m->disabled = 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment