[vlc-commits] x264: the frame rate of the output block is one of the output format
Steve Lhomme
git at videolan.org
Thu Jan 14 13:52:54 UTC 2021
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Jan 12 10:07:34 2021 +0100| [5c1280acbcd5be8ea285c63d8b75c3e86e887734] | committer: Steve Lhomme
x264: the frame rate of the output block is one of the output format
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5c1280acbcd5be8ea285c63d8b75c3e86e887734
---
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 dbb8ea2ddc..70049f50b8 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*/
More information about the vlc-commits
mailing list