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
2f5132e7
Commit
2f5132e7
authored
Feb 25, 2005
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper handling of samplesize
Originally committed as revision 3980 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
19fe8b41
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
flvdec.c
libavformat/flvdec.c
+1
-0
flvenc.c
libavformat/flvenc.c
+1
-1
No files found.
libavformat/flvdec.c
View file @
2f5132e7
...
...
@@ -132,6 +132,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
av_log
(
s
,
AV_LOG_INFO
,
"Unsupported audio codec (%x)
\n
"
,
flags
>>
4
);
st
->
codec
.
codec_tag
=
(
flags
>>
4
);
}
st
->
codec
.
bits_per_sample
=
(
flags
&
2
)
?
16
:
8
;
}
}
else
{
st
->
codec
.
codec_type
=
CODEC_TYPE_VIDEO
;
...
...
libavformat/flvenc.c
View file @
2f5132e7
...
...
@@ -35,7 +35,7 @@ static void put_be24(ByteIOContext *pb, int value)
}
static
int
get_audio_flags
(
AVCodecContext
*
enc
){
int
flags
=
0
;
int
flags
=
(
enc
->
bits_per_sample
==
16
)
?
0x2
:
0x
0
;
switch
(
enc
->
sample_rate
)
{
case
44100
:
...
...
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