summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc-at-google.com@ffmpeg.org>2017-07-06 19:18:50 -0700
committerMuhammad Faiz <mfcc64@gmail.com>2017-07-10 06:56:51 +0700
commit2f84f40d451cec38571ef4a0c5d83d642800ce12 (patch)
tree12f4d1f757ba15b489f14db56d2f9b3e4cd250f1 /libavformat
parentb406f387c80956a4f04ad69f524b7092660ff823 (diff)
downloadffmpeg-streaming-2f84f40d451cec38571ef4a0c5d83d642800ce12.zip
ffmpeg-streaming-2f84f40d451cec38571ef4a0c5d83d642800ce12.tar.gz
avformat/avio: Remove no-op code in url_find_protocol().
In url_find_protocol(), proto_str is either "file" or a string consisting of only the characters in URL_SCHEME_CHARS, which does not include ','. Therefore the strchr(proto_str, ',') call always returns NULL. Note: The code was added in commit 6161c41817f6e53abb3021d67ca0f19def682718. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libavformat/avio.c b/libavformat/avio.c
index 1e79c9d..64248e0 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -263,8 +263,6 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
av_strlcpy(proto_str, filename,
FFMIN(proto_len + 1, sizeof(proto_str)));
- if ((ptr = strchr(proto_str, ',')))
- *ptr = '\0';
av_strlcpy(proto_nested, proto_str, sizeof(proto_nested));
if ((ptr = strchr(proto_nested, '+')))
*ptr = '\0';
OpenPOWER on IntegriCloud