avformat/aviobuf: Fix function pointer equality check

Broken in e8704a8f60
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>
pull/390/head
Andreas Rheinhardt 1 year ago
parent 58aaa83fa2
commit 0c4ac187dc
  1. 2
      libavformat/aviobuf.c

@ -1030,7 +1030,7 @@ URLContext* ffio_geturlcontext(AVIOContext *s)
if (!s) if (!s)
return NULL; 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; return s->opaque;
else else
return NULL; return NULL;

Loading…
Cancel
Save