aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/hashtable.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/hashtable: Remove null statementAndreas Rheinhardt2025-06-041-1/+1
| | | | | Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Only free buffer if there is buffer to freeAndreas Rheinhardt2025-06-041-1/+1
| | | | | Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Mark alloc,free functions as av_coldAndreas Rheinhardt2025-06-041-2/+5
| | | | | Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Combine allocationsAndreas Rheinhardt2025-06-041-9/+4
| | | | | Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Check for overflowAndreas Rheinhardt2025-06-041-1/+7
| | | | | Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Only align complete entriesAndreas Rheinhardt2025-06-041-15/+9
| | | | | | | | | | It is unnecessary to align both key and val, as they are only accessed via memcpy()/memcmp(), which has no alignment requirements. We only need to ensure that that the entries as a whole are suitable aligned for the probe sequence length. Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/hashtable: Zero-initialize hashtableAndreas Rheinhardt2025-06-041-1/+1
| | | | | | | | | Otherwise ff_hashtable_freep() would try to free uninitialized pointers upon allocation error (which happens in the corresponding test tool). Reviewed-by: Emma Worley <emma@emma.gg> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* lavc/hashtable: create generic robin hood hash tableEmma Worley2025-06-021-0/+214
Adds a generic hash table with the DXV encoder as an initial use case. Signed-off-by: Emma Worley <emma@emma.gg>