diff mbox series

[FFmpeg-devel] avformat/aviobuf: Fix function pointer equality check

Message ID AS8P250MB074414B905EFF8164F94F2FC8FF2A@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 0c4ac187dc2ebbeb25ec33630eb1c7963e4c382d
Headers show
Series [FFmpeg-devel] avformat/aviobuf: Fix function pointer equality check | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Sept. 11, 2023, 4:47 p.m. UTC
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.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/aviobuf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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;