aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-01-30 21:35:42 +0100
committerAnton Khirnov <anton@khirnov.net>2017-02-01 10:42:59 +0100
commitb420a27e74750b60d2e064236afb10be06a38ace (patch)
tree77d7f6777d249ca8011f6eb030c5d43e893a02ad /avconv.c
parentab2539bd374fe7ddbc6e2f058b62645cd5076192 (diff)
downloadffmpeg-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/avconv.c b/avconv.c
index fe606250fe..94b6da2a8b 100644
--- a/avconv.c
+++ b/avconv.c
@@ -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));