diff options
author | Ram Mohan <ram.mohan@ittiam.com> | 2023-09-27 19:47:07 +0530 |
---|---|---|
committer | Harish Mahendrakar <harish.mahendrakar@ittiam.com> | 2023-09-27 13:57:19 -0700 |
commit | 2ff6f153766723731d9eb101ef8b2373356d638f (patch) | |
tree | f0f77be1328afd91e50b05a4bc7366ef370ce56c | |
parent | 29f519228a0c8c39414528f2bbb5e44e6b2e05c0 (diff) | |
download | libavc-2ff6f153766723731d9eb101ef8b2373356d638f.tar.gz |
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
-rw-r--r-- | encoder/ih264e_error.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoder/ih264e_error.h b/encoder/ih264e_error.h index 05e8920..f0cc3fc 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);\ } |