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
65a25adc
Commit
65a25adc
authored
Dec 16, 2011
by
Vladimir Pantelic
Committed by
Martin Storsjö
Dec 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: replace some magic numbers with the existing define
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
72cb9044
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpegts.c
libavformat/mpegts.c
+3
-3
No files found.
libavformat/mpegts.c
View file @
65a25adc
...
...
@@ -635,7 +635,7 @@ static void new_pes_packet(PESContext *pes, AVPacket *pkt)
pkt
->
size
=
pes
->
data_index
;
if
(
pes
->
total_size
!=
MAX_PES_PAYLOAD
&&
pes
->
pes_header_size
+
pes
->
data_index
!=
pes
->
total_size
+
6
)
{
pes
->
pes_header_size
+
pes
->
data_index
!=
pes
->
total_size
+
PES_START_SIZE
)
{
av_log
(
pes
->
stream
,
AV_LOG_WARNING
,
"PES packet size mismatch
\n
"
);
pes
->
flags
|=
AV_PKT_FLAG_CORRUPT
;
}
...
...
@@ -918,9 +918,9 @@ static int mpegts_push_data(MpegTSFilter *filter,
* decreases demuxer delay for infrequent packets like subtitles from
* a couple of seconds to milliseconds for properly muxed files.
* total_size is the number of bytes following pes_packet_length
* in the pes header, i.e. not counting the first
6
bytes */
* in the pes header, i.e. not counting the first
PES_START_SIZE
bytes */
if
(
!
ts
->
stop_parse
&&
pes
->
total_size
<
MAX_PES_PAYLOAD
&&
pes
->
pes_header_size
+
pes
->
data_index
==
pes
->
total_size
+
6
)
{
pes
->
pes_header_size
+
pes
->
data_index
==
pes
->
total_size
+
PES_START_SIZE
)
{
ts
->
stop_parse
=
1
;
new_pes_packet
(
pes
,
ts
->
pkt
);
}
...
...
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