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
6d6bd3a3
Commit
6d6bd3a3
authored
Aug 06, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: Drop some unnecessary parentheses
parent
b7b1bf91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mpegtsenc.c
libavformat/mpegtsenc.c
+6
-6
No files found.
libavformat/mpegtsenc.c
View file @
6d6bd3a3
...
...
@@ -110,20 +110,20 @@ static void mpegts_write_section(MpegTSSection *s, uint8_t *buf, int len)
buf
[
len
-
4
]
=
(
crc
>>
24
)
&
0xff
;
buf
[
len
-
3
]
=
(
crc
>>
16
)
&
0xff
;
buf
[
len
-
2
]
=
(
crc
>>
8
)
&
0xff
;
buf
[
len
-
1
]
=
(
crc
)
&
0xff
;
buf
[
len
-
1
]
=
crc
&
0xff
;
/* send each packet */
buf_ptr
=
buf
;
while
(
len
>
0
)
{
first
=
(
buf
==
buf_ptr
)
;
first
=
buf
==
buf_ptr
;
q
=
packet
;
*
q
++
=
0x47
;
b
=
(
s
->
pid
>>
8
)
;
b
=
s
->
pid
>>
8
;
if
(
first
)
b
|=
0x40
;
*
q
++
=
b
;
*
q
++
=
s
->
pid
;
s
->
cc
=
(
s
->
cc
+
1
)
&
0xf
;
s
->
cc
=
s
->
cc
+
1
&
0xf
;
*
q
++
=
0x10
|
s
->
cc
;
if
(
first
)
*
q
++
=
0
;
/* 0 offset */
...
...
@@ -821,12 +821,12 @@ static void mpegts_write_pes(AVFormatContext *s, AVStream *st,
/* prepare packet header */
q
=
buf
;
*
q
++
=
0x47
;
val
=
(
ts_st
->
pid
>>
8
)
;
val
=
ts_st
->
pid
>>
8
;
if
(
is_start
)
val
|=
0x40
;
*
q
++
=
val
;
*
q
++
=
ts_st
->
pid
;
ts_st
->
cc
=
(
ts_st
->
cc
+
1
)
&
0xf
;
ts_st
->
cc
=
ts_st
->
cc
+
1
&
0xf
;
*
q
++
=
0x10
|
ts_st
->
cc
;
// payload indicator + CC
if
(
key
&&
is_start
&&
pts
!=
AV_NOPTS_VALUE
)
{
// set Random Access for key frames
...
...
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