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
c33ed2aa
Commit
c33ed2aa
authored
Nov 01, 2007
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unreachable code
Originally committed as revision 10896 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
01370349
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
adpcm.c
libavcodec/adpcm.c
+0
-7
No files found.
libavcodec/adpcm.c
View file @
c33ed2aa
...
...
@@ -158,11 +158,6 @@ static int adpcm_encode_init(AVCodecContext *avctx)
if
(
avctx
->
channels
>
2
)
return
-
1
;
/* only stereo or mono =) */
switch
(
avctx
->
codec
->
id
)
{
case
CODEC_ID_ADPCM_IMA_QT
:
av_log
(
avctx
,
AV_LOG_ERROR
,
"ADPCM: codec adpcm_ima_qt unsupported for encoding !
\n
"
);
avctx
->
frame_size
=
64
;
/* XXX: can multiple of avctx->channels * 64 (left and right blocks are interleaved) */
return
-
1
;
break
;
case
CODEC_ID_ADPCM_IMA_WAV
:
avctx
->
frame_size
=
(
BLKSIZE
-
4
*
avctx
->
channels
)
*
8
/
(
4
*
avctx
->
channels
)
+
1
;
/* each 16 bits sample gives one nibble */
/* and we have 4 bytes per channel overhead */
...
...
@@ -446,8 +441,6 @@ static int adpcm_encode_frame(AVCodecContext *avctx,
/* n = (BLKSIZE - 4 * avctx->channels) / (2 * 8 * avctx->channels); */
switch
(
avctx
->
codec
->
id
)
{
case
CODEC_ID_ADPCM_IMA_QT
:
/* XXX: can't test until we get .mov writer */
break
;
case
CODEC_ID_ADPCM_IMA_WAV
:
n
=
avctx
->
frame_size
/
8
;
c
->
status
[
0
].
prev_sample
=
(
signed
short
)
samples
[
0
];
/* XXX */
...
...
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