Re: [FFmpeg-devel] [PATCH 2/4] avcodec/nvdec: correctly set output frame size

2017-11-12 Thread Timo Rothenpieler
This is actually not correct, as the classic hwaccels all set the cropping information properly on the frame. So not using the coded_width/height as frame size results in too much cropping. So just dropping this one. smime.p7s Description: S/MIME Cryptographic Signature _

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/nvdec: correctly set output frame size

2017-11-11 Thread Carl Eugen Hoyos
2017-11-11 17:38 GMT+01:00 Timo Rothenpieler : > @@ -249,8 +249,9 @@ int ff_nvdec_decode_init(AVCodecContext *avctx, unsigned > int dpb_size) > > params.ulWidth = avctx->coded_width; > params.ulHeight= avctx->coded_height; > -params.ulTargetWidth = avct

[FFmpeg-devel] [PATCH 2/4] avcodec/nvdec: correctly set output frame size

2017-11-11 Thread Timo Rothenpieler
--- libavcodec/nvdec.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index db338accfa..894112a144 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -232,8 +232,8 @@ int ff_nvdec_decode_init(AVCodecContext *avctx, unsi

Re: [FFmpeg-devel] [PATCH 2/4] avcodec/nvdec: correctly set output frame size

2017-11-11 Thread James Almer
On 11/11/2017 12:21 PM, Timo Rothenpieler wrote: > --- > libavcodec/nvdec.c | 15 +-- > 1 file changed, 9 insertions(+), 6 deletions(-) > > diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c > index db338accfa..780c2e67cf 100644 > --- a/libavcodec/nvdec.c > +++ b/libavcodec/nvdec.c

[FFmpeg-devel] [PATCH 2/4] avcodec/nvdec: correctly set output frame size

2017-11-11 Thread Timo Rothenpieler
--- libavcodec/nvdec.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index db338accfa..780c2e67cf 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -232,8 +232,8 @@ int ff_nvdec_decode_init(AVCodecContext *avct