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
__
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
---
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