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
4c41fc88
Commit
4c41fc88
authored
Dec 16, 2012
by
XBMC
Committed by
Michael Niedermayer
Dec 25, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: update AVProgram after pmt change
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
928727f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
mpegts.c
libavformat/mpegts.c
+18
-0
No files found.
libavformat/mpegts.c
View file @
4c41fc88
...
...
@@ -182,10 +182,25 @@ typedef struct PESContext {
extern
AVInputFormat
ff_mpegts_demuxer
;
static
void
clear_avprogram
(
MpegTSContext
*
ts
,
unsigned
int
programid
)
{
AVProgram
*
prg
=
NULL
;
int
i
;
for
(
i
=
0
;
i
<
ts
->
stream
->
nb_programs
;
i
++
)
if
(
ts
->
stream
->
programs
[
i
]
->
id
==
programid
){
prg
=
ts
->
stream
->
programs
[
i
];
break
;
}
if
(
!
prg
)
return
;
prg
->
nb_stream_indexes
=
0
;
}
static
void
clear_program
(
MpegTSContext
*
ts
,
unsigned
int
programid
)
{
int
i
;
clear_avprogram
(
ts
,
programid
);
for
(
i
=
0
;
i
<
ts
->
nb_prg
;
i
++
)
if
(
ts
->
prg
[
i
].
id
==
programid
)
ts
->
prg
[
i
].
nb_pids
=
0
;
...
...
@@ -193,6 +208,9 @@ static void clear_program(MpegTSContext *ts, unsigned int programid)
static
void
clear_programs
(
MpegTSContext
*
ts
)
{
int
i
;
for
(
i
=
0
;
i
<
ts
->
nb_prg
;
i
++
)
clear_avprogram
(
ts
,
ts
->
prg
[
i
].
id
);
av_freep
(
&
ts
->
prg
);
ts
->
nb_prg
=
0
;
}
...
...
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