On 3/29/2024 12:31 PM, [email protected] wrote:
From: Tong Wu <[email protected]>

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 <[email protected]>
Signed-off-by: Tong Wu <[email protected]>
---
  libavcodec/hevc_ps.c | 19 +++++++++++++++----
  libavcodec/hevc_ps.h |  4 +++-
  2 files changed, 18 insertions(+), 5 deletions(-)

LGTM. Will apply.
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to