diff options
author | Tong Wu <tong1.wu@intel.com> | 2024-03-29 23:31:20 +0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-03-29 12:35:54 -0300 |
commit | 6bf17136a2bc1e6f52ea9cd27a6dcaab648efe5c (patch) | |
tree | 5a85b90b41511f99696506ba2301a2b40d2270bd /doc/examples/show_metadata.c | |
parent | fa110c32b5168d99098dc0c50c6465054cf9d20b (diff) | |
download | ffmpeg-6bf17136a2bc1e6f52ea9cd27a6dcaab648efe5c.tar.gz |
avcodec/hevc_ps: fix the problem of memcmp losing effectiveness
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@gmail.com>
Signed-off-by: Tong Wu <tong1.wu@intel.com>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'doc/examples/show_metadata.c')
0 files changed, 0 insertions, 0 deletions