Re: [FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-16 Thread Matthieu Bouron
On Sat, Dec 16, 2017 at 07:20:53PM +0800, Wang Bin wrote: > 2017-12-16 17:12 GMT+08:00 Matthieu Bouron : > > On Sat, Dec 16, 2017 at 01:40:18PM +0800, Wang Bin wrote: > >> > > +width = s->crop_right + 1 - s->crop_left; > >> > > +else > >> > > +width = s->width; > >> > > > >> > >

Re: [FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-16 Thread Wang Bin
2017-12-16 17:12 GMT+08:00 Matthieu Bouron : > On Sat, Dec 16, 2017 at 01:40:18PM +0800, Wang Bin wrote: >> > > +width = s->crop_right + 1 - s->crop_left; >> > > +else >> > > +width = s->width; >> > > >> > > av_log(avctx, AV_LOG_INFO, >> > > "Output crop parameters

Re: [FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-16 Thread Matthieu Bouron
On Sat, Dec 16, 2017 at 01:40:18PM +0800, Wang Bin wrote: > > > +width = s->crop_right + 1 - s->crop_left; > > > +else > > > +width = s->width; > > > > > > av_log(avctx, AV_LOG_INFO, > > > "Output crop parameters top=%d bottom=%d left=%d right=%d, " > > > > On whic

Re: [FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-15 Thread Wang Bin
> > +width = s->crop_right + 1 - s->crop_left; > > +else > > +width = s->width; > > > > av_log(avctx, AV_LOG_INFO, > > "Output crop parameters top=%d bottom=%d left=%d right=%d, " > > On which device does this happen ? None of my devices have such problem. It hap

Re: [FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-15 Thread Matthieu Bouron
On Fri, Dec 15, 2017 at 03:06:49PM +0800, wbse...@gmail.com wrote: > From: wang-bin Hi, > > --- > libavcodec/mediacodecdec_common.c | 23 +-- > 1 file changed, 9 insertions(+), 14 deletions(-) > > diff --git a/libavcodec/mediacodecdec_common.c > b/libavcodec/mediacodecdec

[FFmpeg-devel] [PATCH 07/14] mediacodec: check whether cropping is set before use

2017-12-14 Thread wbsecg1
From: wang-bin --- libavcodec/mediacodecdec_common.c | 23 +-- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index cb2f6ae5e5..05d3bcd4b5 100644 --- a/libavcodec/mediacodecdec_common.c +++