[FFmpeg-devel] [PATCH v3] avcodec/hevc_ps: fix the problem of memcmp losing effectiveness
James Almer
jamrial at gmail.com
Fri Mar 29 17:33:53 EET 2024
On 3/29/2024 12:31 PM, tong1.wu at intel.com wrote:
> From: Tong Wu <tong1.wu at intel.com>
>
> HEVCHdrParams* receives a pointer which points to a dynamically
> allocated memory block. It causes the memcmp always returning 1.
> Add a function to do the comparision. A condition is also added to
> avoid malloc(0).
>
> Reviewed-by: James Almer <jamrial at gmail.com>
> Signed-off-by: Tong Wu <tong1.wu at intel.com>
> ---
> libavcodec/hevc_ps.c | 19 +++++++++++++++----
> libavcodec/hevc_ps.h | 4 +++-
> 2 files changed, 18 insertions(+), 5 deletions(-)
LGTM. Will apply.
More information about the ffmpeg-devel
mailing list