From ff394dfdfd4f95f35bd83c6890c68fa32e3d0121 Mon Sep 17 00:00:00 2001 From: Ram Mohan Date: Wed, 27 Sep 2023 19:47:07 +0530 Subject: [PATCH] libavcenc: return partially encoded buffer for application As bitstream overflow errors are not marked as fatal errors and these recons are being used for reference, its best to return the partial encoded buffers for application Change-Id: I30a8e9907cf42d3bc883ee78b28cbae723bad7ac --- encoder/ih264e_error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoder/ih264e_error.h b/encoder/ih264e_error.h index 05e89209..f0cc3fc1 100644 --- a/encoder/ih264e_error.h +++ b/encoder/ih264e_error.h @@ -48,7 +48,7 @@ {\ out_status = ((1 << severity) | error);\ ps_codec->i4_error_code = out_status;\ - return (ret_code);\ + if (severity == IVE_FATALERROR) return (ret_code);\ }