Re: [FFmpeg-devel] [PATCH 3/4] avcodec/nvdec: add support for 12 bit formats

2017-11-12 Thread Timo Rothenpieler
Ideally, this should also set avctx->bits_per_raw_sample or an equivalent, if it exists. I would assume that the surrounding codec parser already sets that? A hwaccel does not usually set fields in avctx. smime.p7s Description: S/MIME Cryptographic Signature __

Re: [FFmpeg-devel] [PATCH 3/4] avcodec/nvdec: add support for 12 bit formats

2017-11-11 Thread Carl Eugen Hoyos
2017-11-11 16:21 GMT+01:00 Timo Rothenpieler : > --- > libavcodec/nvdec.c | 18 +++--- > 1 file changed, 15 insertions(+), 3 deletions(-) > > diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c > index 780c2e67cf..d3620f0d1f 100644 > --- a/libavcodec/nvdec.c > +++ b/libavcodec/nvdec.c

[FFmpeg-devel] [PATCH 3/4] avcodec/nvdec: add support for 12 bit formats

2017-11-11 Thread Timo Rothenpieler
--- libavcodec/nvdec.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c index 780c2e67cf..d3620f0d1f 100644 --- a/libavcodec/nvdec.c +++ b/libavcodec/nvdec.c @@ -234,9 +234,21 @@ int ff_nvdec_decode_init(AVCodecContext