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
a675d73d
Commit
a675d73d
authored
Aug 01, 2012
by
Derek Buitenhuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eamad: Use dsputils instead of a custom bswap16_buf
Signed-off-by:
Derek Buitenhuis
<
derek.buitenhuis@gmail.com
>
parent
45eaac02
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
eamad.c
libavcodec/eamad.c
+1
-8
No files found.
libavcodec/eamad.c
View file @
a675d73d
...
...
@@ -57,13 +57,6 @@ typedef struct MadContext {
int
mb_y
;
}
MadContext
;
static
void
bswap16_buf
(
uint16_t
*
dst
,
const
uint16_t
*
src
,
int
count
)
{
int
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
dst
[
i
]
=
av_bswap16
(
src
[
i
]);
}
static
av_cold
int
decode_init
(
AVCodecContext
*
avctx
)
{
MadContext
*
s
=
avctx
->
priv_data
;
...
...
@@ -273,7 +266,7 @@ static int decode_frame(AVCodecContext *avctx,
av_fast_malloc
(
&
s
->
bitstream_buf
,
&
s
->
bitstream_buf_size
,
(
buf_end
-
buf
)
+
FF_INPUT_BUFFER_PADDING_SIZE
);
if
(
!
s
->
bitstream_buf
)
return
AVERROR
(
ENOMEM
);
bswap16_buf
(
s
->
bitstream_buf
,
(
const
uint16_t
*
)
buf
,
(
buf_end
-
buf
)
/
2
);
s
->
dsp
.
bswap16_buf
(
s
->
bitstream_buf
,
(
const
uint16_t
*
)
buf
,
(
buf_end
-
buf
)
/
2
);
init_get_bits
(
&
s
->
gb
,
s
->
bitstream_buf
,
8
*
(
buf_end
-
buf
));
for
(
s
->
mb_y
=
0
;
s
->
mb_y
<
(
avctx
->
height
+
15
)
/
16
;
s
->
mb_y
++
)
...
...
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