Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4919b3c1
Unverified
Commit
4919b3c1
authored
Oct 17, 2020
by
Zane van Iperen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/adpcm_swf: support custom block size for encoding
Signed-off-by:
Zane van Iperen
<
zane@zanevaniperen.com
>
parent
0547fa57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
adpcmenc.c
libavcodec/adpcmenc.c
+1
-1
No files found.
libavcodec/adpcmenc.c
View file @
4919b3c1
...
...
@@ -153,7 +153,7 @@ static av_cold int adpcm_encode_init(AVCodecContext *avctx)
"22050 or 44100
\n
"
);
return
AVERROR
(
EINVAL
);
}
avctx
->
frame_size
=
512
*
(
avctx
->
sample_rate
/
11025
);
avctx
->
frame_size
=
(
s
->
block_size
/
2
)
*
(
avctx
->
sample_rate
/
11025
);
avctx
->
block_align
=
(
2
+
avctx
->
channels
*
(
22
+
4
*
(
avctx
->
frame_size
-
1
))
+
7
)
/
8
;
break
;
case
AV_CODEC_ID_ADPCM_IMA_SSI
:
...
...
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