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
228ef9dd
Commit
228ef9dd
authored
Aug 24, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
memmove fixes (Jon Burgess)
Originally committed as revision 2157 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
758cf534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+3
-3
No files found.
libavcodec/mpegaudiodec.c
View file @
228ef9dd
...
...
@@ -1460,7 +1460,7 @@ static void seek_to_maindata(MPADecodeContext *s, unsigned int backstep)
uint8_t
*
ptr
;
/* compute current position in stream */
ptr
=
s
->
gb
.
buffer
+
(
get_bits_count
(
&
s
->
gb
)
>>
3
);
ptr
=
(
uint8_t
*
)(
s
->
gb
.
buffer
+
(
get_bits_count
(
&
s
->
gb
)
>>
3
)
);
/* copy old data before current one */
ptr
-=
backstep
;
...
...
@@ -2376,7 +2376,7 @@ static int decode_frame(AVCodecContext * avctx,
if
(
check_header
(
header
)
<
0
)
{
/* no sync found : move by one byte (inefficient, but simple!) */
mem
cpy
(
s
->
inbuf
,
s
->
inbuf
+
1
,
s
->
inbuf_ptr
-
s
->
inbuf
-
1
);
mem
move
(
s
->
inbuf
,
s
->
inbuf
+
1
,
s
->
inbuf_ptr
-
s
->
inbuf
-
1
);
s
->
inbuf_ptr
--
;
dprintf
(
"skip %x
\n
"
,
header
);
/* reset free format frame size to give a chance
...
...
@@ -2402,7 +2402,7 @@ static int decode_frame(AVCodecContext * avctx,
if
(
len
==
0
)
{
/* frame too long: resync */
s
->
frame_size
=
0
;
mem
cpy
(
s
->
inbuf
,
s
->
inbuf
+
1
,
s
->
inbuf_ptr
-
s
->
inbuf
-
1
);
mem
move
(
s
->
inbuf
,
s
->
inbuf
+
1
,
s
->
inbuf_ptr
-
s
->
inbuf
-
1
);
s
->
inbuf_ptr
--
;
}
else
{
uint8_t
*
p
,
*
pend
;
...
...
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