mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Merge commit '48e50921337984ba4ec2c1cafe45d43787f84498'
* commit '48e50921337984ba4ec2c1cafe45d43787f84498': avconv: make -shortest work with streamcopy Conflicts: ffmpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
52ce6be86b
15
ffmpeg.c
15
ffmpeg.c
@ -1127,6 +1127,19 @@ static void do_video_stats(OutputStream *ost, int frame_size)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void finish_output_stream(OutputStream *ost)
|
||||||
|
{
|
||||||
|
OutputFile *of = output_files[ost->file_index];
|
||||||
|
int i;
|
||||||
|
|
||||||
|
ost->finished = ENCODER_FINISHED | MUXER_FINISHED;
|
||||||
|
|
||||||
|
if (of->shortest) {
|
||||||
|
for (i = 0; i < of->ctx->nb_streams; i++)
|
||||||
|
output_streams[of->ost_index + i]->finished = ENCODER_FINISHED | MUXER_FINISHED;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get and encode new output from any of the filtergraphs, without causing
|
* Get and encode new output from any of the filtergraphs, without causing
|
||||||
* activity.
|
* activity.
|
||||||
@ -3315,7 +3328,7 @@ static int process_input(int file_index)
|
|||||||
|
|
||||||
if (ost->source_index == ifile->ist_index + i &&
|
if (ost->source_index == ifile->ist_index + i &&
|
||||||
(ost->stream_copy || ost->enc->type == AVMEDIA_TYPE_SUBTITLE))
|
(ost->stream_copy || ost->enc->type == AVMEDIA_TYPE_SUBTITLE))
|
||||||
close_output_stream(ost);
|
finish_output_stream(ost);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user