mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 00:02:52 +00:00
Simplify code and avoid compiler warning about incompatible types.
This commit is contained in:
parent
bf19c87101
commit
06a9da7365
@ -60,11 +60,11 @@ URLProtocol *av_protocol_next(URLProtocol *p)
|
||||
|
||||
const char *avio_enum_protocols(void **opaque, int output)
|
||||
{
|
||||
URLProtocol **p = opaque;
|
||||
*p = *p ? (*p)->next : first_protocol;
|
||||
if (!*p) return NULL;
|
||||
if ((output && (*p)->url_write) || (!output && (*p)->url_read))
|
||||
return (*p)->name;
|
||||
URLProtocol *p = *opaque;
|
||||
p = p ? p->next : first_protocol;
|
||||
if (!p) return NULL;
|
||||
if ((output && p->url_write) || (!output && p->url_read))
|
||||
return p->name;
|
||||
return avio_enum_protocols(opaque, output);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user