OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf19c87
)
Simplify code and avoid compiler warning about incompatible types.
author
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 1 Jun 2011 18:29:27 +0000
(20:29 +0200)
committer
Reimar Döffinger
<Reimar.Doeffinger@gmx.de>
Wed, 1 Jun 2011 18:29:27 +0000
(20:29 +0200)
libavformat/avio.c
patch
|
blob
|
history
diff --git
a/libavformat/avio.c
b/libavformat/avio.c
index
972c533
..
b2926c0
100644
(file)
--- a/
libavformat/avio.c
+++ b/
libavformat/avio.c
@@
-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);
}