Re: [FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: fix vtctx reset condition

2024-07-07 Thread Zhao Zhili
> 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!

[FFmpeg-devel] [PATCH] avcodec/videotoolboxenc: fix vtctx reset condition

2024-06-20 Thread Hao Guan
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