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
fd0f1442
Commit
fd0f1442
authored
May 03, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mpegtsenc: Fix stream_type for low sample rate MP2/MP3.
parent
a454ad67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
mpegtsenc.c
libavformat/mpegtsenc.c
+6
-1
No files found.
libavformat/mpegtsenc.c
View file @
fd0f1442
...
@@ -318,7 +318,12 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
...
@@ -318,7 +318,12 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
break
;
break
;
case
AV_CODEC_ID_MP2
:
case
AV_CODEC_ID_MP2
:
case
AV_CODEC_ID_MP3
:
case
AV_CODEC_ID_MP3
:
stream_type
=
STREAM_TYPE_AUDIO_MPEG1
;
if
(
st
->
codec
->
sample_rate
>
0
&&
st
->
codec
->
sample_rate
<
32000
)
{
stream_type
=
STREAM_TYPE_AUDIO_MPEG2
;
}
else
{
stream_type
=
STREAM_TYPE_AUDIO_MPEG1
;
}
break
;
break
;
case
AV_CODEC_ID_AAC
:
case
AV_CODEC_ID_AAC
:
stream_type
=
(
ts
->
flags
&
MPEGTS_FLAG_AAC_LATM
)
stream_type
=
(
ts
->
flags
&
MPEGTS_FLAG_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