Commit ca9d7c57 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '24eb3c79'

* commit '24eb3c79':
  rtmpproto: Avoid using uninitialized memory
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e9b836cd 24eb3c79
......@@ -2511,9 +2511,9 @@ reconnect:
(!strcmp(fname + len - 4, ".f4v") ||
!strcmp(fname + len - 4, ".mp4"))) {
memcpy(rt->playpath, "mp4:", 5);
} else if (len >= 4 && !strcmp(fname + len - 4, ".flv")) {
fname[len - 4] = '\0';
} else {
if (len >= 4 && !strcmp(fname + len - 4, ".flv"))
fname[len - 4] = '\0';
rt->playpath[0] = 0;
}
av_strlcat(rt->playpath, fname, PLAYPATH_MAX_LENGTH);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment