diff options
author | Anton Khirnov <anton@khirnov.net> | 2017-01-30 21:35:42 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2017-02-01 10:42:59 +0100 |
commit | b420a27e74750b60d2e064236afb10be06a38ace (patch) | |
tree | 77d7f6777d249ca8011f6eb030c5d43e893a02ad /avconv.c | |
parent | ab2539bd374fe7ddbc6e2f058b62645cd5076192 (diff) | |
download | ffmpeg-b420a27e74750b60d2e064236afb10be06a38ace.tar.gz |
avconv: allow -b to be used with streamcopy
In this mode it tells the muxer about the bitrate of the input stream.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1852,6 +1852,9 @@ static int init_output_stream_streamcopy(OutputStream *ost) ost->st->time_base = ist->st->time_base; + if (ost->bitrate_override) + par_dst->bit_rate = ost->bitrate_override; + if (ist->st->nb_side_data) { ost->st->side_data = av_realloc_array(NULL, ist->st->nb_side_data, sizeof(*ist->st->side_data)); |