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
c234d40b
Commit
c234d40b
authored
Apr 08, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: rename a parameter of av_sdp_create from buff->buf
This is more consistent with the rest of the API.
parent
c3675dfe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
avformat.h
libavformat/avformat.h
+3
-3
sdp.c
libavformat/sdp.c
+6
-6
No files found.
libavformat/avformat.h
View file @
c234d40b
...
...
@@ -1553,12 +1553,12 @@ int av_filename_number_test(const char *filename);
* all the contexts in the array (an AVCodecContext per RTP stream)
* must contain only one AVStream.
* @param n_files number of AVCodecContexts contained in ac
* @param buf
f
buffer where the SDP will be stored (must be allocated by
*
the caller)
* @param buf buffer where the SDP will be stored (must be allocated by
* the caller)
* @param size the size of the buffer
* @return 0 if OK, AVERROR_xxx on error
*/
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
f
,
int
size
);
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
,
int
size
);
#if FF_API_SDP_CREATE
attribute_deprecated
int
avf_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buff
,
int
size
);
...
...
libavformat/sdp.c
View file @
c234d40b
...
...
@@ -474,14 +474,14 @@ void ff_sdp_write_media(char *buff, int size, AVCodecContext *c, const char *des
sdp_write_media_attributes
(
buff
,
size
,
c
,
payload_type
);
}
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
f
,
int
size
)
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
,
int
size
)
{
AVMetadataTag
*
title
=
av_metadata_get
(
ac
[
0
]
->
metadata
,
"title"
,
NULL
,
0
);
struct
sdp_session_level
s
;
int
i
,
j
,
port
,
ttl
,
is_multicast
;
char
dst
[
32
],
dst_type
[
5
];
memset
(
buf
f
,
0
,
size
);
memset
(
buf
,
0
,
size
);
memset
(
&
s
,
0
,
sizeof
(
struct
sdp_session_level
));
s
.
user
=
"-"
;
s
.
src_addr
=
"127.0.0.1"
;
/* FIXME: Properly set this */
...
...
@@ -506,7 +506,7 @@ int av_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
}
}
}
sdp_write_header
(
buf
f
,
size
,
&
s
);
sdp_write_header
(
buf
,
size
,
&
s
);
dst
[
0
]
=
0
;
for
(
i
=
0
;
i
<
n_files
;
i
++
)
{
...
...
@@ -518,11 +518,11 @@ int av_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
ttl
=
0
;
}
for
(
j
=
0
;
j
<
ac
[
i
]
->
nb_streams
;
j
++
)
{
ff_sdp_write_media
(
buf
f
,
size
,
ff_sdp_write_media
(
buf
,
size
,
ac
[
i
]
->
streams
[
j
]
->
codec
,
dst
[
0
]
?
dst
:
NULL
,
dst_type
,
(
port
>
0
)
?
port
+
j
*
2
:
0
,
ttl
);
if
(
port
<=
0
)
{
av_strlcatf
(
buf
f
,
size
,
av_strlcatf
(
buf
,
size
,
"a=control:streamid=%d
\r\n
"
,
i
+
j
);
}
}
...
...
@@ -531,7 +531,7 @@ int av_sdp_create(AVFormatContext *ac[], int n_files, char *buff, int size)
return
0
;
}
#else
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
f
,
int
size
)
int
av_sdp_create
(
AVFormatContext
*
ac
[],
int
n_files
,
char
*
buf
,
int
size
)
{
return
AVERROR
(
ENOSYS
);
}
...
...
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