mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-18 05:04:04 +00:00
media: hantro: Prevent encoders from using post-processing
The post-processing feature is meant to be used by decoding
only. Prevent encoding jobs from enabling it.
Fixes: 8c2d66b036
("media: hantro: Support color conversion via post-processing")
Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
042584e905
commit
986eee3a52
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,7 @@ hantro_get_dst_buf(struct hantro_ctx *ctx)
|
|||
static inline bool
|
||||
hantro_needs_postproc(struct hantro_ctx *ctx, const struct hantro_fmt *fmt)
|
||||
{
|
||||
return fmt->fourcc != V4L2_PIX_FMT_NV12;
|
||||
return !hantro_is_encoder_ctx(ctx) && fmt->fourcc != V4L2_PIX_FMT_NV12;
|
||||
}
|
||||
|
||||
static inline dma_addr_t
|
||||
|
|
Loading…
Add table
Reference in a new issue