diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-01 20:29:27 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-01 20:29:27 +0200 |
commit | 06a9da736554197601e4062298fcf45a5e8d49ff (patch) | |
tree | 76597a9cdb5360583e11921bc7efbaa30f41304a /libavformat/avio.c | |
parent | bf19c871012644fe27c69531b5f733c472aa858b (diff) | |
download | ffmpeg-06a9da736554197601e4062298fcf45a5e8d49ff.tar.gz |
Simplify code and avoid compiler warning about incompatible types.
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r-- | libavformat/avio.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c index 972c5334f3..b2926c0f3c 100644 --- 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); } |