On 3/29/2024 12:31 PM, tong1...@intel.com wrote:
From: Tong Wu <tong1...@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 <jamr...@gmail.com>
Signed-off-by: Tong Wu <tong1...@intel.com>
---
  libavcodec/hevc_ps.c | 19 +++++++++++++++----
  libavcodec/hevc_ps.h |  4 +++-
  2 files changed, 18 insertions(+), 5 deletions(-)

LGTM. Will apply.
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to