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
af7d0ad9
Commit
af7d0ad9
authored
Nov 26, 2016
by
Steven Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refine avformat/flvdec set bit_rate
parent
7c5478a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
flvdec.c
libavformat/flvdec.c
+2
-1
No files found.
libavformat/flvdec.c
View file @
af7d0ad9
...
...
@@ -143,9 +143,10 @@ static AVStream *create_stream(AVFormatContext *s, int codec_type)
&&
s
->
streams
[
0
]
->
codecpar
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
&&
s
->
streams
[
1
]
->
codecpar
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
))
s
->
ctx_flags
&=
~
AVFMTCTX_NOHEADER
;
if
(
codec_type
==
AVMEDIA_TYPE_AUDIO
)
if
(
codec_type
==
AVMEDIA_TYPE_AUDIO
)
{
st
->
codecpar
->
bit_rate
=
flv
->
audio_bit_rate
;
flv
->
missing_streams
&=
~
FLV_HEADER_FLAG_HASAUDIO
;
}
if
(
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
st
->
codecpar
->
bit_rate
=
flv
->
video_bit_rate
;
flv
->
missing_streams
&=
~
FLV_HEADER_FLAG_HASVIDEO
;
...
...
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