diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-03-14 21:24:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-03-14 21:24:48 +0100 |
| commit | 078d40d5ba2f94d4c54eec42a1672cba108e159b (patch) | |
| tree | ad8307fb7bdadd8fc82b3958076ab0ffccb45a6d | |
| parent | df3d6312ac40b2cf3a846c4bb741da8510eec126 (diff) | |
fixup! Set rc_max_rate so that mediainfo reports the correct values.fixit
| -rw-r--r-- | src/mpeg2_transcode.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mpeg2_transcode.cc b/src/mpeg2_transcode.cc index 84d2d5a4..6d396d88 100644 --- a/src/mpeg2_transcode.cc +++ b/src/mpeg2_transcode.cc @@ -162,6 +162,7 @@ MPEG2Compressor::MPEG2Compressor(dcp::Size size, int video_frame_rate, int64_t b _context->time_base = AVRational{1, video_frame_rate}; _context->pix_fmt = AV_PIX_FMT_YUV420P; _context->bit_rate = bit_rate; + _context->rc_min_rate = bit_rate; _context->rc_max_rate = bit_rate; int const r = avcodec_open2(_context, _codec, nullptr); |
