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
92d24f49
Commit
92d24f49
authored
Oct 31, 2001
by
Zdenek Kabelac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* fixed decoding busy loop
Originally committed as revision 203 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cabad2ad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mpegaudiodec.c
libavcodec/mpegaudiodec.c
+2
-1
No files found.
libavcodec/mpegaudiodec.c
View file @
92d24f49
...
...
@@ -2270,7 +2270,7 @@ static int decode_frame(AVCodecContext * avctx,
len
=
HEADER_SIZE
-
len
;
if
(
len
>
buf_size
)
len
=
buf_size
;
else
if
(
len
>
0
)
{
if
(
len
>
0
)
{
memcpy
(
s
->
inbuf_ptr
,
buf_ptr
,
len
);
buf_ptr
+=
len
;
buf_size
-=
len
;
...
...
@@ -2280,6 +2280,7 @@ static int decode_frame(AVCodecContext * avctx,
got_header:
header
=
(
s
->
inbuf
[
0
]
<<
24
)
|
(
s
->
inbuf
[
1
]
<<
16
)
|
(
s
->
inbuf
[
2
]
<<
8
)
|
s
->
inbuf
[
3
];
if
(
check_header
(
header
)
<
0
)
{
/* no sync found : move by one byte (inefficient, but simple!) */
memcpy
(
s
->
inbuf
,
s
->
inbuf
+
1
,
s
->
inbuf_ptr
-
s
->
inbuf
-
1
);
...
...
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