libavc/encoder
Neelkamal Semwal 3e73f0d562 encoder: fix invalid free of raw buffers
Return current input buffer as buffer to be freed in case
of errors that are seen before picking up the input buffer
to be from the input queue.
Once a buffer is picked up from the queue, that is returned
as the buffer to be freed.

There is no need to return a buffer from ps_proc context

Bug: 180643802

Test: poc in the bug description
Test: atest CtsMediaV2TestCases:CodecEncoderTest
Test: atest VtsHalMediaC2V1_0TargetVideoEncTest

Change-Id: I1671ca1e82f522004d1f070df89b256b856f75b8
2021-04-30 21:57:10 +00:00
..
arm arm: Properly match /* */ comments in the arm assembly 2015-06-25 08:25:48 -07:00
armv8 armv8: Fix ime_calculate_sad3_prog_av8 2016-10-06 10:29:43 +03:00
mips Fix MIPS build 2015-06-25 10:43:24 -07:00
x86 Don't declare variables after statements 2015-06-25 08:25:58 -07:00
ih264e.h Encoder: Added support for configuring VUI parameters. 2016-07-12 14:41:59 -07:00
ih264e_api.c [automerger] Encoder: Return error for odd resolution am: 9fa58d4db3 am: f56e0c0ed3 am: db53adff11 am: 538e4ed787 am: c8fc4c0206 am: 2e1c177836 am: 353851c307 am: 207d68137f am: 0bc2eef47a 2018-04-14 18:39:01 +00:00
ih264e_bitstream.c avcenc: Add bitstream overflow check during emulation prevention 2021-03-20 15:36:08 +00:00
ih264e_bitstream.h avcenc: Add bitstream overflow check during emulation prevention 2021-03-20 15:36:08 +00:00
ih264e_cabac.c avcenc: Add bitstream overflow check during emulation prevention 2021-03-20 15:36:08 +00:00
ih264e_cabac.h avcenc: Add bitstream overflow check during emulation prevention 2021-03-20 15:36:08 +00:00
ih264e_cabac_encode.c Encoder: Defined structures for accessing MB header data 2016-11-24 12:25:49 +05:30
ih264e_cabac_init.c Encoder: Fixed unaligned access of i1_ref_idx and u1_mv in cabac context 2016-11-24 12:22:25 +05:30
ih264e_cabac_structs.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_cavlc.c Encoder: Defined structures for accessing MB header data 2016-11-24 12:25:49 +05:30
ih264e_cavlc.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_config.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_core_coding.c Always do recon of 4x4 intra blocks 2015-07-31 18:51:09 +00:00
ih264e_core_coding.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_deblk.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_deblk.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_debug.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_defs.h Increases max screen height and width to 2560. 2016-08-22 12:09:12 -07:00
ih264e_encode.c encoder: fix invalid free of raw buffers 2021-04-30 21:57:10 +00:00
ih264e_encode_header.c Encoder: Fix in signalling direct_8x8_inference_flag in SPS am: 7f1e3b7b07 am: 3f977fc6db 2016-08-09 20:52:19 +00:00
ih264e_encode_header.h Encoder added support for VUI params 2015-10-09 11:35:29 -07:00
ih264e_error.h DO NOT MERGE Encoder: Added support for Constrained intra prediction. 2016-03-11 22:10:12 +00:00
ih264e_fmt_conv.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_fmt_conv.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_function_selector_generic.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_globals.c Fixed QP lockups 2015-06-25 08:25:53 -07:00
ih264e_globals.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_half_pel.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_half_pel.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_intra_modes_eval.c DO NOT MERGE Encoder: Added support for Constrained intra prediction. 2016-03-11 22:10:12 +00:00
ih264e_intra_modes_eval.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_list.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_master.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_mc.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_mc.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_me.c Fixed issue in cost computation for BIPRED ME 2015-07-31 18:50:48 +00:00
ih264e_me.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_modify_frm_rate.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
ih264e_modify_frm_rate.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_process.c avcenc: Add bitstream overflow check during emulation prevention 2021-03-20 15:36:08 +00:00
ih264e_process.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_rate_control.c Made gops closed 2015-07-31 18:51:20 +00:00
ih264e_rate_control.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ih264e_rc_mem_interface.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
ih264e_rc_mem_interface.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_statistics.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_structs.h Merge "Encoder: Defined structures for accessing MB header data" 2016-11-29 14:33:27 +00:00
ih264e_time_stamp.c Encoder: Fixed an issue in handling FPS greater than 60 2015-08-03 09:45:14 -07:00
ih264e_time_stamp.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_trace.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_trace_support.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_utils.c Made gops closed 2015-07-31 18:51:20 +00:00
ih264e_utils.h Reduced memory requirements. 2015-06-25 08:25:54 -07:00
ih264e_version.c Remove __DATE__/__TIME__ from Android builds 2015-10-30 21:54:53 +00:00
ih264e_version.h fix file permissions 2015-05-05 17:51:34 +00:00
ime.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime_defs.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime_distortion_metrics.c Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime_distortion_metrics.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime_macros.h fix file permissions 2015-05-05 17:51:34 +00:00
ime_statistics.h fix file permissions 2015-05-05 17:51:34 +00:00
ime_structs.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
ime_typedefs.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_bit_allocation.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_bit_allocation.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_cbr_buffer_control.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_cbr_buffer_control.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_cntrl_param.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_common.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
irc_datatypes.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_est_sad.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_est_sad.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_fixed_point_error_bits.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_fixed_point_error_bits.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_frame_info_collector.c fix file permissions 2015-05-05 17:51:34 +00:00
irc_frame_info_collector.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_mb_model_based.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_mb_model_based.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_mem_req_and_acq.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_picture_type.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_picture_type.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
irc_rate_control_api.c Encoder: Update scene cut detection logic 2017-05-01 10:42:57 -07:00
irc_rate_control_api.h Added support for Main Profile toolsets in encoder. 2015-06-25 08:25:43 -07:00
irc_rate_control_api_structs.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_rd_model.c Don't declare variables after statements 2015-06-25 08:25:58 -07:00
irc_rd_model.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_rd_model_struct.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_trace_support.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_vbr_storage_vbv.c Don't use static structs for rc init 2015-06-25 08:25:57 -07:00
irc_vbr_storage_vbv.h fix file permissions 2015-05-05 17:51:34 +00:00
irc_vbr_str_prms.c fix file permissions 2015-05-05 17:51:34 +00:00
irc_vbr_str_prms.h fix file permissions 2015-05-05 17:51:34 +00:00
iv2.h fix file permissions 2015-05-05 17:51:34 +00:00
ive2.h Encoder: Added support for configuring VUI parameters. 2016-07-12 14:41:59 -07:00