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
0f562f5b
Commit
0f562f5b
authored
Aug 06, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: Do not print an error when the buffer has to be refilled
Partially amends
9469370f
parent
9469370f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
h264.c
libavcodec/h264.c
+2
-5
No files found.
libavcodec/h264.c
View file @
0f562f5b
...
...
@@ -1274,11 +1274,8 @@ static int get_avc_nalsize(H264Context *h, const uint8_t *buf,
int
i
,
nalsize
=
0
;
if
(
*
buf_index
>=
buf_size
-
h
->
nal_length_size
)
{
av_log
(
h
->
avctx
,
AV_LOG_ERROR
,
"AVC: The buffer size %d is too short to read "
"the nal length size %d at the offset %d.
\n
"
,
buf_size
,
h
->
nal_length_size
,
*
buf_index
);
return
AVERROR_INVALIDDATA
;
// the end of the buffer is reached, refill it.
return
AVERROR
(
EAGAIN
);
}
for
(
i
=
0
;
i
<
h
->
nal_length_size
;
i
++
)
...
...
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