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
925bd174
Commit
925bd174
authored
Jun 07, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/tta: fix macro ()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f2407407
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
tta.c
libavcodec/tta.c
+1
-1
ttaenc.c
libavcodec/ttaenc.c
+1
-1
No files found.
libavcodec/tta.c
View file @
925bd174
...
@@ -312,7 +312,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
...
@@ -312,7 +312,7 @@ static int tta_decode_frame(AVCodecContext *avctx, void *data,
filter
->
shift
,
filter
->
round
);
filter
->
shift
,
filter
->
round
);
// fixed order prediction
// fixed order prediction
#define PRED(x, k) (int32_t)((((uint64_t)
x << k) - x) >> k
)
#define PRED(x, k) (int32_t)((((uint64_t)
(x) << (k)) - (x)) >> (k)
)
switch
(
s
->
bps
)
{
switch
(
s
->
bps
)
{
case
1
:
*
p
+=
PRED
(
*
predictor
,
4
);
break
;
case
1
:
*
p
+=
PRED
(
*
predictor
,
4
);
break
;
case
2
:
case
2
:
...
...
libavcodec/ttaenc.c
View file @
925bd174
...
@@ -144,7 +144,7 @@ static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
...
@@ -144,7 +144,7 @@ static int tta_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
}
}
temp
=
value
;
temp
=
value
;
#define PRED(x, k) (int32_t)((((uint64_t)
x << k) - x) >> k
)
#define PRED(x, k) (int32_t)((((uint64_t)
(x) << (k)) - (x)) >> (k)
)
switch
(
s
->
bps
)
{
switch
(
s
->
bps
)
{
case
1
:
value
-=
PRED
(
c
->
predictor
,
4
);
break
;
case
1
:
value
-=
PRED
(
c
->
predictor
,
4
);
break
;
case
2
:
case
2
:
...
...
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