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
fa15b1e7
Commit
fa15b1e7
authored
Sep 25, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bit: loose seekback & wrong bitrate code.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
dfc571ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
bit.c
libavformat/bit.c
+0
-12
No files found.
libavformat/bit.c
View file @
fa15b1e7
...
@@ -32,17 +32,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -32,17 +32,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
if
(
!
st
)
if
(
!
st
)
return
AVERROR
(
ENOMEM
);
return
AVERROR
(
ENOMEM
);
url_fskip
(
pb
,
2
);
switch
(
get_le16
(
pb
))
{
case
0x40
:
st
->
codec
->
bit_rate
=
6400
;
break
;
case
0x50
:
st
->
codec
->
bit_rate
=
8000
;
break
;
}
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_AUDIO
;
st
->
codec
->
codec_id
=
CODEC_ID_G729
;
st
->
codec
->
codec_id
=
CODEC_ID_G729
;
st
->
codec
->
sample_rate
=
8000
;
st
->
codec
->
sample_rate
=
8000
;
...
@@ -50,7 +39,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
...
@@ -50,7 +39,6 @@ static int read_header(AVFormatContext *s, AVFormatParameters *ap)
st
->
codec
->
channels
=
1
;
st
->
codec
->
channels
=
1
;
av_set_pts_info
(
st
,
64
,
1
,
100
);
av_set_pts_info
(
st
,
64
,
1
,
100
);
url_fseek
(
pb
,
0
,
SEEK_SET
);
return
0
;
return
0
;
}
}
...
...
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