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
9ccdf04b
Commit
9ccdf04b
authored
Apr 12, 2016
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mpegtsenc: move putstr8 definition up
This allows to use the function in a future commit.
parent
75a13115
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
mpegtsenc.c
libavformat/mpegtsenc.c
+17
-17
No files found.
libavformat/mpegtsenc.c
View file @
9ccdf04b
...
...
@@ -264,6 +264,23 @@ static void mpegts_write_pat(AVFormatContext *s)
data
,
q
-
data
);
}
/* NOTE: !str is accepted for an empty string */
static
void
putstr8
(
uint8_t
**
q_ptr
,
const
char
*
str
)
{
uint8_t
*
q
;
int
len
;
q
=
*
q_ptr
;
if
(
!
str
)
len
=
0
;
else
len
=
strlen
(
str
);
*
q
++
=
len
;
memcpy
(
q
,
str
,
len
);
q
+=
len
;
*
q_ptr
=
q
;
}
static
int
mpegts_write_pmt
(
AVFormatContext
*
s
,
MpegTSService
*
service
)
{
MpegTSWrite
*
ts
=
s
->
priv_data
;
...
...
@@ -646,23 +663,6 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
return
0
;
}
/* NOTE: !str is accepted for an empty string */
static
void
putstr8
(
uint8_t
**
q_ptr
,
const
char
*
str
)
{
uint8_t
*
q
;
int
len
;
q
=
*
q_ptr
;
if
(
!
str
)
len
=
0
;
else
len
=
strlen
(
str
);
*
q
++
=
len
;
memcpy
(
q
,
str
,
len
);
q
+=
len
;
*
q_ptr
=
q
;
}
static
void
mpegts_write_sdt
(
AVFormatContext
*
s
)
{
MpegTSWrite
*
ts
=
s
->
priv_data
;
...
...
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