mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
Merge commit 'ee050797664c7c74cae262ffab05006b55d47a11'
* commit 'ee050797664c7c74cae262ffab05006b55d47a11': openssl: Support version 1.1.0. This commit is mostly a noop, see 798c6ecce50f26a53d48e2577a34fabe46b32eb9 Included the simplifications by Martin Storsjö and fixed the GET_BIO_DATA() macro to prevent a warning after the simplifications. Merged-by: Clément Bœsch <u@pkh.me>
This commit is contained in:
commit
fc83de7e1d
@ -86,17 +86,15 @@ static int url_bio_destroy(BIO *b)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
|
#if OPENSSL_VERSION_NUMBER >= 0x1010000fL
|
||||||
#define GET_BIO_DATA(x) BIO_get_data(x);
|
#define GET_BIO_DATA(x) BIO_get_data(x)
|
||||||
#else
|
#else
|
||||||
#define GET_BIO_DATA(x) (x)->ptr;
|
#define GET_BIO_DATA(x) (x)->ptr
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static int url_bio_bread(BIO *b, char *buf, int len)
|
static int url_bio_bread(BIO *b, char *buf, int len)
|
||||||
{
|
{
|
||||||
URLContext *h;
|
URLContext *h = GET_BIO_DATA(b);
|
||||||
int ret;
|
int ret = ffurl_read(h, buf, len);
|
||||||
h = GET_BIO_DATA(b);
|
|
||||||
ret = ffurl_read(h, buf, len);
|
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
return ret;
|
return ret;
|
||||||
BIO_clear_retry_flags(b);
|
BIO_clear_retry_flags(b);
|
||||||
@ -107,10 +105,8 @@ static int url_bio_bread(BIO *b, char *buf, int len)
|
|||||||
|
|
||||||
static int url_bio_bwrite(BIO *b, const char *buf, int len)
|
static int url_bio_bwrite(BIO *b, const char *buf, int len)
|
||||||
{
|
{
|
||||||
URLContext *h;
|
URLContext *h = GET_BIO_DATA(b);
|
||||||
int ret;
|
int ret = ffurl_write(h, buf, len);
|
||||||
h = GET_BIO_DATA(b);
|
|
||||||
ret = ffurl_write(h, buf, len);
|
|
||||||
if (ret >= 0)
|
if (ret >= 0)
|
||||||
return ret;
|
return ret;
|
||||||
BIO_clear_retry_flags(b);
|
BIO_clear_retry_flags(b);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user