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
60e73066
Commit
60e73066
authored
Feb 14, 2011
by
Anssi Hannula
Committed by
Mans Rullgard
Feb 14, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegts: set st->disposition according to ISO 639 language descriptor
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
935ee1b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
mpegts.c
libavformat/mpegts.c
+5
-0
No files found.
libavformat/mpegts.c
View file @
60e73066
...
@@ -954,6 +954,11 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
...
@@ -954,6 +954,11 @@ int ff_parse_mpeg2_descriptor(AVFormatContext *fc, AVStream *st, int stream_type
language
[
2
]
=
get8
(
pp
,
desc_end
);
language
[
2
]
=
get8
(
pp
,
desc_end
);
language
[
3
]
=
0
;
language
[
3
]
=
0
;
av_metadata_set2
(
&
st
->
metadata
,
"language"
,
language
,
0
);
av_metadata_set2
(
&
st
->
metadata
,
"language"
,
language
,
0
);
switch
(
get8
(
pp
,
desc_end
))
{
case
0x01
:
st
->
disposition
|=
AV_DISPOSITION_CLEAN_EFFECTS
;
break
;
case
0x02
:
st
->
disposition
|=
AV_DISPOSITION_HEARING_IMPAIRED
;
break
;
case
0x03
:
st
->
disposition
|=
AV_DISPOSITION_VISUAL_IMPAIRED
;
break
;
}
break
;
break
;
case
0x05
:
/* registration descriptor */
case
0x05
:
/* registration descriptor */
st
->
codec
->
codec_tag
=
bytestream_get_le32
(
pp
);
st
->
codec
->
codec_tag
=
bytestream_get_le32
(
pp
);
...
...
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