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
b95fbba7
Commit
b95fbba7
authored
Sep 24, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cosmetics: remove extra spaces before end-of-statement semi-colons
parent
60aa1a35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
vorbisdec.c
libavcodec/vorbisdec.c
+6
-6
No files found.
libavcodec/vorbisdec.c
View file @
b95fbba7
...
@@ -962,7 +962,7 @@ static int vorbis_parse_id_hdr(vorbis_context *vc)
...
@@ -962,7 +962,7 @@ static int vorbis_parse_id_hdr(vorbis_context *vc)
static
av_cold
int
vorbis_decode_init
(
AVCodecContext
*
avccontext
)
static
av_cold
int
vorbis_decode_init
(
AVCodecContext
*
avccontext
)
{
{
vorbis_context
*
vc
=
avccontext
->
priv_data
;
vorbis_context
*
vc
=
avccontext
->
priv_data
;
uint8_t
*
headers
=
avccontext
->
extradata
;
uint8_t
*
headers
=
avccontext
->
extradata
;
int
headers_len
=
avccontext
->
extradata_size
;
int
headers_len
=
avccontext
->
extradata_size
;
uint8_t
*
header_start
[
3
];
uint8_t
*
header_start
[
3
];
...
@@ -1026,7 +1026,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext)
...
@@ -1026,7 +1026,7 @@ static av_cold int vorbis_decode_init(AVCodecContext *avccontext)
avccontext
->
sample_rate
=
vc
->
audio_samplerate
;
avccontext
->
sample_rate
=
vc
->
audio_samplerate
;
avccontext
->
frame_size
=
FFMIN
(
vc
->
blocksize
[
0
],
vc
->
blocksize
[
1
])
>>
2
;
avccontext
->
frame_size
=
FFMIN
(
vc
->
blocksize
[
0
],
vc
->
blocksize
[
1
])
>>
2
;
return
0
;
return
0
;
}
}
// Decode audiopackets -------------------------------------------------
// Decode audiopackets -------------------------------------------------
...
@@ -1604,7 +1604,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
...
@@ -1604,7 +1604,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
{
{
const
uint8_t
*
buf
=
avpkt
->
data
;
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
int
buf_size
=
avpkt
->
size
;
vorbis_context
*
vc
=
avccontext
->
priv_data
;
vorbis_context
*
vc
=
avccontext
->
priv_data
;
GetBitContext
*
gb
=
&
(
vc
->
gb
);
GetBitContext
*
gb
=
&
(
vc
->
gb
);
const
float
*
channel_ptrs
[
255
];
const
float
*
channel_ptrs
[
255
];
int
i
,
len
,
out_size
;
int
i
,
len
,
out_size
;
...
@@ -1626,7 +1626,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
...
@@ -1626,7 +1626,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
if
(
!
vc
->
first_frame
)
{
if
(
!
vc
->
first_frame
)
{
vc
->
first_frame
=
1
;
vc
->
first_frame
=
1
;
*
data_size
=
0
;
*
data_size
=
0
;
return
buf_size
;
return
buf_size
;
}
}
av_dlog
(
NULL
,
"parsed %d bytes %d bits, returned %d samples (*ch*bits)
\n
"
,
av_dlog
(
NULL
,
"parsed %d bytes %d bits, returned %d samples (*ch*bits)
\n
"
,
...
@@ -1656,7 +1656,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
...
@@ -1656,7 +1656,7 @@ static int vorbis_decode_frame(AVCodecContext *avccontext,
*
data_size
=
out_size
;
*
data_size
=
out_size
;
return
buf_size
;
return
buf_size
;
}
}
// Close decoder
// Close decoder
...
@@ -1667,7 +1667,7 @@ static av_cold int vorbis_decode_close(AVCodecContext *avccontext)
...
@@ -1667,7 +1667,7 @@ static av_cold int vorbis_decode_close(AVCodecContext *avccontext)
vorbis_free
(
vc
);
vorbis_free
(
vc
);
return
0
;
return
0
;
}
}
AVCodec
ff_vorbis_decoder
=
{
AVCodec
ff_vorbis_decoder
=
{
...
...
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