Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
350ad50b
Commit
350ad50b
authored
Apr 04, 2013
by
Andrew Van Til
Committed by
Martin Storsjö
Apr 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Use RTP_MAX_PACKET_LENGTH instead of 1500
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
bc0522df
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
6 deletions
+8
-6
rtsp.c
libavformat/rtsp.c
+1
-1
sapdec.c
libavformat/sapdec.c
+3
-2
srtp.c
libavformat/srtp.c
+2
-2
srtpproto.c
libavformat/srtpproto.c
+2
-1
No files found.
libavformat/rtsp.c
View file @
350ad50b
...
...
@@ -2138,7 +2138,7 @@ static int rtp_probe(AVProbeData *p)
static
int
rtp_read_header
(
AVFormatContext
*
s
)
{
uint8_t
recvbuf
[
1500
];
uint8_t
recvbuf
[
RTP_MAX_PACKET_LENGTH
];
char
host
[
500
],
sdp
[
500
];
int
ret
,
port
;
URLContext
*
in
=
NULL
;
...
...
libavformat/sapdec.c
View file @
350ad50b
...
...
@@ -27,6 +27,7 @@
#include "internal.h"
#include "avio_internal.h"
#include "url.h"
#include "rtpdec.h"
#if HAVE_POLL_H
#include <poll.h>
#endif
...
...
@@ -63,7 +64,7 @@ static int sap_read_header(AVFormatContext *s)
{
struct
SAPState
*
sap
=
s
->
priv_data
;
char
host
[
1024
],
path
[
1024
],
url
[
1024
];
uint8_t
recvbuf
[
1500
];
uint8_t
recvbuf
[
RTP_MAX_PACKET_LENGTH
];
int
port
;
int
ret
,
i
;
AVInputFormat
*
infmt
;
...
...
@@ -186,7 +187,7 @@ static int sap_fetch_packet(AVFormatContext *s, AVPacket *pkt)
int
fd
=
ffurl_get_file_handle
(
sap
->
ann_fd
);
int
n
,
ret
;
struct
pollfd
p
=
{
fd
,
POLLIN
,
0
};
uint8_t
recvbuf
[
1500
];
uint8_t
recvbuf
[
RTP_MAX_PACKET_LENGTH
];
if
(
sap
->
eof
)
return
AVERROR_EOF
;
...
...
libavformat/srtp.c
View file @
350ad50b
...
...
@@ -419,7 +419,7 @@ static void test_encrypt(const uint8_t *data, int in_len, const char *suite,
{
struct
SRTPContext
enc
=
{
0
},
dec
=
{
0
};
int
len
;
char
buf
[
1500
];
char
buf
[
RTP_MAX_PACKET_LENGTH
];
ff_srtp_set_crypto
(
&
enc
,
suite
,
key
);
ff_srtp_set_crypto
(
&
dec
,
suite
,
key
);
len
=
ff_srtp_encrypt
(
&
enc
,
data
,
in_len
,
buf
,
sizeof
(
buf
));
...
...
@@ -441,7 +441,7 @@ int main(void)
static
const
char
*
aes128_32_suite
=
"AES_CM_128_HMAC_SHA1_32"
;
static
const
char
*
aes128_80_32_suite
=
"SRTP_AES128_CM_HMAC_SHA1_32"
;
static
const
char
*
test_key
=
"abcdefghijklmnopqrstuvwxyz1234567890ABCD"
;
uint8_t
buf
[
1500
];
uint8_t
buf
[
RTP_MAX_PACKET_LENGTH
];
struct
SRTPContext
srtp
=
{
0
};
int
len
;
ff_srtp_set_crypto
(
&
srtp
,
aes128_80_suite
,
aes128_80_key
);
...
...
libavformat/srtpproto.c
View file @
350ad50b
...
...
@@ -25,6 +25,7 @@
#include "url.h"
#include "internal.h"
#include "rtpdec.h"
#include "srtp.h"
typedef
struct
SRTPProtoContext
{
...
...
@@ -33,7 +34,7 @@ typedef struct SRTPProtoContext {
const
char
*
out_suite
,
*
out_params
;
const
char
*
in_suite
,
*
in_params
;
struct
SRTPContext
srtp_out
,
srtp_in
;
uint8_t
encryptbuf
[
1500
];
uint8_t
encryptbuf
[
RTP_MAX_PACKET_LENGTH
];
}
SRTPProtoContext
;
#define D AV_OPT_FLAG_DECODING_PARAM
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment