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
e9362aae
Commit
e9362aae
authored
Oct 28, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imc: use DSPContext.bswap16_buf() to byte-swap packet data
parent
f011fcd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
imc.c
libavcodec/imc.c
+3
-3
No files found.
libavcodec/imc.c
View file @
e9362aae
...
...
@@ -655,14 +655,14 @@ static int imc_decode_frame(AVCodecContext * avctx,
int
flag
;
int
bits
,
summer
;
int
counter
,
bitscount
;
uint16_t
buf16
[
IMC_BLOCK_SIZE
/
2
]
;
LOCAL_ALIGNED_16
(
uint16_t
,
buf16
,
[
IMC_BLOCK_SIZE
/
2
])
;
if
(
buf_size
<
IMC_BLOCK_SIZE
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"imc frame too small!
\n
"
);
return
-
1
;
}
for
(
i
=
0
;
i
<
IMC_BLOCK_SIZE
/
2
;
i
++
)
buf16
[
i
]
=
av_bswap16
(((
const
uint16_t
*
)
buf
)[
i
]
);
q
->
dsp
.
bswap16_buf
(
buf16
,
(
const
uint16_t
*
)
buf
,
IMC_BLOCK_SIZE
/
2
);
q
->
out_samples
=
data
;
init_get_bits
(
&
q
->
gb
,
(
const
uint8_t
*
)
buf16
,
IMC_BLOCK_SIZE
*
8
);
...
...
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