aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-11 18:45:06 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-11 20:27:49 +0200
commit0c4ac187dc2ebbeb25ec33630eb1c7963e4c382d (patch)
treeec715fdea1145d72ae8dacc55456f15ad3bbc3f9
parent58aaa83fa2eb72a6682129c6238c73a5bf39fafc (diff)
downloadffmpeg-0c4ac187dc2ebbeb25ec33630eb1c7963e4c382d.tar.gz
avformat/aviobuf: Fix function pointer equality check
Broken in e8704a8f60041abb84585efaf3223abf0b6dcb90 when ffurl_read() has been turned into a static inline function different from the actually used function ffurl_read2(). Fixes ticket #10562. Tested-by: Mitzsch01 Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavformat/aviobuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index c55fe8a837..2899c75521 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -1030,7 +1030,7 @@ URLContext* ffio_geturlcontext(AVIOContext *s)
if (!s)
return NULL;
- if (s->opaque && s->read_packet == (int (*)(void *, uint8_t *, int))ffurl_read)
+ if (s->opaque && s->read_packet == ffurl_read2)
return s->opaque;
else
return NULL;