Browse Source

avio: fix pointer type mismatches in avio_enum_protocols()

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n1.1
Mans Rullgard 12 years ago
parent
commit
4521645b1a
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      libavformat/avio.c

+ 5
- 5
libavformat/avio.c View File

@@ -85,11 +85,11 @@ const AVClass ffurl_context_class = {

const char *avio_enum_protocols(void **opaque, int output)
{
URLProtocol **p = opaque;
*p = ffurl_protocol_next(*p);
if (!*p) return NULL;
if ((output && (*p)->url_write) || (!output && (*p)->url_read))
return (*p)->name;
URLProtocol *p;
*opaque = ffurl_protocol_next(*opaque);
if (!(p = *opaque)) return NULL;
if ((output && p->url_write) || (!output && p->url_read))
return p->name;
return avio_enum_protocols(opaque, output);
}



Loading…
Cancel
Save