mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/tiff: Don't cast const away via bsearch
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
a5fcd97801
commit
abcb4b44f5
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue