libavc/encoder
Harish Mahendrakar a073696092 Validate input dimensions in process()
Input dimensions are checked for supported range in set_dimensions
control call. Encoder returns an error for unsupported values in
this control call. But if the caller ignores this error and proceeds
to call process(), encoder wasn't checking the dimensions again.

Unsupported dimensions are now checked in process() call as well.

Note: This is relanding previously reverted commit
06c30b33c4

Bug: 172908358
Test: Poc in bug
Test: atest android.mediav2.cts
Test: atest android.media.cts
Change-Id: Icf3f296ab24432c680427a82da3505491acca3bd
2021-03-25 03:04:25 +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 Fix Compiler warnings 2018-08-10 15:17:08 -07:00
ih264e.h libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30
ih264e_api.c Validate input dimensions in process() 2021-03-25 03:04:25 +00:00
ih264e_bitstream.c Added check for minimum output buffer size. 2015-06-25 08:25:55 -07:00
ih264e_bitstream.h Added check for minimum output buffer size. 2015-06-25 08:25:55 -07:00
ih264e_cabac.c Cabac optimizations 2015-07-31 18:50:37 +00:00
ih264e_cabac.h Cabac optimizations 2015-07-31 18:50:37 +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 libavcenc: Fix B frame incomplete subgop issue 2019-05-10 15:06:15 -07:00
ih264e_encode.c libavc: Handling of Error propagation 2019-10-24 17:54:31 +05:30
ih264e_encode_header.c libavc: Handling of Error propagation 2019-10-24 17:54:31 +05:30
ih264e_encode_header.h encoder: Return gracefully from entropy encoding errors 2019-12-03 15:30:38 +05:30
ih264e_error.h libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30
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 avcenc: Disable intra planar evaluation in FASTEST preset 2017-12-04 12:00:56 +05:30
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 avcenc: Disable SKIP_BIAS 2018-01-19 01:31:01 +00: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 Merge "encoder: Return gracefully from entropy encoding errors" am: 94f5d3f0f7 am: 7be9fe31f8 am: 0b545cc625 2020-01-22 20:37:55 +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_sei.c libavc: Handling of Error propagation 2019-10-24 17:54:31 +05:30
ih264e_sei.h libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30
ih264e_statistics.h fix file permissions 2015-05-05 17:51:34 +00:00
ih264e_structs.h libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30
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 libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30
ih264e_utils.h Reduced memory requirements. 2015-06-25 08:25:54 -07:00
ih264e_version.c Stop using __DATE__/__TIME__ on all builds 2019-08-27 19:47:33 -07: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 avcenc: Move SKIP_BIAS macro definition to enc from me 2018-01-19 01:30:00 +00: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 libavc: Add MDCV, CLL, CCV and AVE SEI messages 2019-10-24 17:20:00 +05:30