diff options
author | Martin Storsjö <martin@martin.st> | 2011-01-23 23:39:02 +0200 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-01-24 20:19:37 +0000 |
commit | 2b0decf60ba6dd5eec16e88d4b816e56108a2935 (patch) | |
tree | 82879b2d749010e98bf2d0d504754e4027681019 /libavformat/applehttp.c | |
parent | dacbcd170a329dda2014159ca9fc9d11d887625c (diff) | |
download | ffmpeg-streaming-2b0decf60ba6dd5eec16e88d4b816e56108a2935.zip ffmpeg-streaming-2b0decf60ba6dd5eec16e88d4b816e56108a2935.tar.gz |
applehttp: Fix the key check in handle_variant_args
The key string is supposed to contain the equals character,
too. Since the checked string was wrong, and the return value
check was wrong too, it incorrectly seemed to work right before.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavformat/applehttp.c')
-rw-r--r-- | libavformat/applehttp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/applehttp.c b/libavformat/applehttp.c index b73adcc..6f03548 100644 --- a/libavformat/applehttp.c +++ b/libavformat/applehttp.c @@ -181,7 +181,7 @@ struct variant_info { static void handle_variant_args(struct variant_info *info, const char *key, int key_len, char **dest, int *dest_len) { - if (strncmp(key, "BANDWIDTH", key_len)) { + if (!strncmp(key, "BANDWIDTH=", key_len)) { *dest = info->bandwidth; *dest_len = sizeof(info->bandwidth); } |