[FFmpeg-cvslog] rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bn
Martin Storsjö
git at videolan.org
Fri May 29 11:31:31 CEST 2015
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Thu May 28 09:47:44 2015 +0300| [78efc69e7c990226f4b913721ef1b308ca5bfa04] | committer: Martin Storsjö
rtmpdh: Make sure ret is initialized in the nettle version of bn_hex2bn
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=78efc69e7c990226f4b913721ef1b308ca5bfa04
---
libavformat/rtmpdh.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/rtmpdh.c b/libavformat/rtmpdh.c
index 38c2f3d..ddb2a46 100644
--- a/libavformat/rtmpdh.c
+++ b/libavformat/rtmpdh.c
@@ -77,6 +77,8 @@
bn_new(bn); \
if (bn) \
ret = (mpz_set_str(bn, buf, 16) == 0); \
+ else \
+ ret = 1; \
} while (0)
#define bn_modexp(bn, y, q, p) mpz_powm(bn, y, q, p)
#define bn_random(bn, num_bytes) \
More information about the ffmpeg-cvslog
mailing list