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
fe483ac4
Commit
fe483ac4
authored
May 04, 2016
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpegtsenc: fix usage of AVStream.codec
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
fc1c836d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mpegtsenc.c
libavformat/mpegtsenc.c
+2
-2
No files found.
libavformat/mpegtsenc.c
View file @
fe483ac4
...
...
@@ -319,8 +319,8 @@ static int mpegts_write_pmt(AVFormatContext *s, MpegTSService *service)
break
;
case
AV_CODEC_ID_MP2
:
case
AV_CODEC_ID_MP3
:
if
(
st
->
codec
->
sample_rate
>
0
&&
st
->
codec
->
sample_rate
<
32000
)
{
if
(
st
->
codec
par
->
sample_rate
>
0
&&
st
->
codec
par
->
sample_rate
<
32000
)
{
stream_type
=
STREAM_TYPE_AUDIO_MPEG2
;
}
else
{
stream_type
=
STREAM_TYPE_AUDIO_MPEG1
;
...
...
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