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
b8604a97
Commit
b8604a97
authored
Jun 01, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oggparsecelt: do not set AVCodecContext.frame_size
It is supposed to be set by decoders only.
parent
d5cf5afa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
oggparsecelt.c
libavformat/oggparsecelt.c
+1
-3
No files found.
libavformat/oggparsecelt.c
View file @
b8604a97
...
...
@@ -42,7 +42,7 @@ static int celt_header(AVFormatContext *s, int idx)
!
memcmp
(
p
,
ff_celt_codec
.
magic
,
ff_celt_codec
.
magicsize
))
{
/* Main header */
uint32_t
version
,
sample_rate
,
nb_channels
,
frame_size
;
uint32_t
version
,
sample_rate
,
nb_channels
;
uint32_t
overlap
,
extra_headers
;
uint8_t
*
extradata
;
...
...
@@ -58,7 +58,6 @@ static int celt_header(AVFormatContext *s, int idx)
/* unused header size field skipped */
sample_rate
=
AV_RL32
(
p
+
36
);
nb_channels
=
AV_RL32
(
p
+
40
);
frame_size
=
AV_RL32
(
p
+
44
);
overlap
=
AV_RL32
(
p
+
48
);
/* unused bytes per packet field skipped */
extra_headers
=
AV_RL32
(
p
+
56
);
...
...
@@ -68,7 +67,6 @@ static int celt_header(AVFormatContext *s, int idx)
st
->
codec
->
codec_id
=
AV_CODEC_ID_CELT
;
st
->
codec
->
sample_rate
=
sample_rate
;
st
->
codec
->
channels
=
nb_channels
;
st
->
codec
->
frame_size
=
frame_size
;
st
->
codec
->
extradata
=
extradata
;
st
->
codec
->
extradata_size
=
2
*
sizeof
(
uint32_t
);
if
(
sample_rate
)
...
...
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