> On Jun 21, 2024, at 14:08, Hao Guan wrote:
>
> In vtenc_populate_extradata, the cleanup function vtenc_reset should not
> be used when no error occurs, otherwise some color information is lost
> (#11036).
>
> This patch checks the status code and conducts the correct cleanup.
LGTM, thanks!
In vtenc_populate_extradata, the cleanup function vtenc_reset should not
be used when no error occurs, otherwise some color information is lost
(#11036).
This patch checks the status code and conducts the correct cleanup.
Signed-off-by: Hao Guan
---
libavcodec/videotoolboxenc.c | 9 -
1