Re: [FFmpeg-devel] [PATCH 2/2] lavc/vaapi_encode: fix the mismatched vbvBuf size unit for mpeg2

2019-01-23 Thread Fu, Linjie
> -Original Message- > From: ffmpeg-devel [mailto:ffmpeg-devel-boun...@ffmpeg.org] On Behalf > Of Mark Thompson > Sent: Thursday, January 24, 2019 07:38 > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/2] lavc/vaapi_encode: fix the > mismat

Re: [FFmpeg-devel] [PATCH 2/2] lavc/vaapi_encode: fix the mismatched vbvBuf size unit for mpeg2

2019-01-23 Thread Mark Thompson
On 16/01/2019 14:34, Linjie Fu wrote: > hrd_buffer_size and hrd_initial_buffer_fullness are set in bits, while > driver takes the vbvBuf size in 16 kbits. The mismatch will cause > quality issue. > > One way to solve this issue in FFmpeg level is set the bufsize > specially for mpeg2 as the unit