Re: [FFmpeg-devel] [PATCH 2/2] lavf/vaapi_encode: fix to set the default max bitrate for AVC VBR

2018-03-12 Thread Qu, Pengfei
95% is used to caculate the default max bitrate > accordingly. > > Signed-off-by: Pengfei Qu <pengfei...@intel.com> > --- > libavcodec/vaapi_encode.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcodec/vaapi_encode.c b/libavcode

Re: [FFmpeg-devel] [PATCH 1/2] lavc/vaapi_encode: fix the caculation overflow

2018-03-12 Thread Qu, Pengfei
Qu wrote: > this fix the overflow during the caculation before value assignment. > > Signed-off-by: Pengfei Qu <pengfei...@intel.com> > --- > libavcodec/vaapi_encode.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/libavcod