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
c72e05ba
Commit
c72e05ba
authored
Mar 21, 2007
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Smacker Audio stereo fix
Originally committed as revision 8460 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
5d171758
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
smacker.c
libavcodec/smacker.c
+8
-14
No files found.
libavcodec/smacker.c
View file @
c72e05ba
...
...
@@ -620,14 +620,10 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
}
if
(
bits
)
{
//decode 16-bit data
pred
[
0
]
=
get_bits
(
&
gb
,
8
);
pred
[
0
]
|=
get_bits
(
&
gb
,
8
);
*
samples
++
=
pred
[
0
];
if
(
stereo
)
{
pred
[
1
]
=
get_bits
(
&
gb
,
8
);
pred
[
1
]
|=
get_bits
(
&
gb
,
8
);
*
samples
++
=
pred
[
1
];
}
for
(
i
=
stereo
;
i
>=
0
;
i
--
)
pred
[
i
]
=
bswap_16
(
get_bits
(
&
gb
,
16
));
for
(
i
=
0
;
i
<
stereo
;
i
++
)
*
samples
++
=
pred
[
i
];
for
(
i
=
0
;
i
<
unp_size
/
2
;
i
++
)
{
if
(
i
&
stereo
)
{
if
(
vlc
[
2
].
table
)
...
...
@@ -658,12 +654,10 @@ static int smka_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
}
}
}
else
{
//8-bit data
pred
[
0
]
=
get_bits
(
&
gb
,
8
);
*
samples
++
=
(
pred
[
0
]
-
0x80
)
<<
8
;
if
(
stereo
)
{
pred
[
1
]
=
get_bits
(
&
gb
,
8
);
*
samples
++
=
(
pred
[
1
]
-
0x80
)
<<
8
;
}
for
(
i
=
stereo
;
i
>=
0
;
i
--
)
pred
[
i
]
=
get_bits
(
&
gb
,
8
);
for
(
i
=
0
;
i
<
stereo
;
i
++
)
*
samples
++
=
(
pred
[
i
]
-
0x80
)
<<
8
;
for
(
i
=
0
;
i
<
unp_size
;
i
++
)
{
if
(
i
&
stereo
){
if
(
vlc
[
1
].
table
)
...
...
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