[vlc-devel] [PATCH 3/3] x264: the frame rate of the output block is one of the output format
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 12 16:41:26 UTC 2021
---
modules/codec/x264.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/codec/x264.c b/modules/codec/x264.c
index dbb8ea2ddc7..70049f50b8b 100644
--- a/modules/codec/x264.c
+++ b/modules/codec/x264.c
@@ -1546,8 +1546,8 @@ static block_t *Encode( encoder_t *p_enc, picture_t *p_pict )
{
/* This isn't really valid for streams with B-frames */
p_block->i_length = vlc_tick_from_samples(
- p_enc->fmt_in.video.i_frame_rate_base,
- p_enc->fmt_in.video.i_frame_rate );
+ p_enc->fmt_out.video.i_frame_rate_base,
+ p_enc->fmt_out.video.i_frame_rate );
}
/* scale pts-values back*/
--
2.29.2
More information about the vlc-devel
mailing list