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
476d04a5
Commit
476d04a5
authored
Oct 05, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: Parse mpeg2 SL descriptors.
parent
77b5c82b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
mpegts.c
libavformat/mpegts.c
+13
-1
No files found.
libavformat/mpegts.c
View file @
476d04a5
...
...
@@ -909,7 +909,7 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
uint8_t
*
mp4_dec_config_descr
)
{
const
uint8_t
*
desc_end
;
int
desc_len
,
desc_tag
;
int
desc_len
,
desc_tag
,
desc_es_id
;
char
language
[
252
];
int
i
;
...
...
@@ -930,6 +930,18 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
mpegts_find_stream_type
(
st
,
desc_tag
,
DESC_types
);
switch
(
desc_tag
)
{
case
0x1E
:
/* SL descriptor */
desc_es_id
=
get16
(
pp
,
desc_end
);
if
(
mp4_dec_config_descr_len
&&
mp4_es_id
==
desc_es_id
)
{
AVIOContext
pb
;
ffio_init_context
(
&
pb
,
mp4_dec_config_descr
,
mp4_dec_config_descr_len
,
0
,
NULL
,
NULL
,
NULL
,
NULL
);
ff_mp4_read_dec_config_descr
(
fc
,
st
,
&
pb
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AAC
&&
st
->
codec
->
extradata_size
>
0
)
st
->
need_parsing
=
0
;
}
break
;
case
0x1F
:
/* FMC descriptor */
get16
(
pp
,
desc_end
);
if
(
st
->
codec
->
codec_id
==
CODEC_ID_AAC_LATM
&&
...
...
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