diff options
author | Martin Storsjö <martin@martin.st> | 2015-05-28 10:11:27 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-05-29 09:42:32 +0300 |
commit | 0508faaa11bf7507ffdd655aee57c9dc5a8203f4 (patch) | |
tree | 0dbb44c924f107ee9094c4caa078d504a2930c23 /libavformat/rtmpcrypt.c | |
parent | 9f1b3050d9e31e9283d818f3640f3460ac8cfb5b (diff) | |
download | ffmpeg-0508faaa11bf7507ffdd655aee57c9dc5a8203f4.tar.gz |
rtmpdh: Pass the actual buffer size of the output secret key
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpcrypt.c')
-rw-r--r-- | libavformat/rtmpcrypt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpcrypt.c b/libavformat/rtmpcrypt.c index dfdd029a53..887427d205 100644 --- a/libavformat/rtmpcrypt.c +++ b/libavformat/rtmpcrypt.c @@ -163,7 +163,7 @@ int ff_rtmpe_compute_secret_key(URLContext *h, const uint8_t *serverdata, /* compute the shared secret secret in order to compute RC4 keys */ if ((ret = ff_dh_compute_shared_secret_key(rt->dh, serverdata + server_pos, - 128, secret_key)) < 0) + 128, secret_key, sizeof(secret_key))) < 0) return ret; /* set output key */ |