mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-16 03:50:05 +01:00
avcodec/tiff: Don't cast const away via bsearch
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -176,7 +176,7 @@ static int cmp_id_key(const void *id, const void *k)
|
||||
|
||||
static const char *search_keyval(const TiffGeoTagKeyName *keys, int n, int id)
|
||||
{
|
||||
TiffGeoTagKeyName *r = bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key);
|
||||
const TiffGeoTagKeyName *r = bsearch(&id, keys, n, sizeof(keys[0]), cmp_id_key);
|
||||
if(r)
|
||||
return r->name;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user