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
61bd0ed7
Commit
61bd0ed7
authored
Jul 05, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
h264: Log more information about invalid NALu size
parent
7b1ae0e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
h2645_parse.c
libavcodec/h2645_parse.c
+3
-1
No files found.
libavcodec/h2645_parse.c
View file @
61bd0ed7
...
@@ -237,7 +237,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
...
@@ -237,7 +237,9 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
extract_length
=
(
extract_length
<<
8
)
|
buf
[
i
];
extract_length
=
(
extract_length
<<
8
)
|
buf
[
i
];
if
(
extract_length
>
length
)
{
if
(
extract_length
>
length
)
{
av_log
(
logctx
,
AV_LOG_ERROR
,
"Invalid NAL unit size.
\n
"
);
av_log
(
logctx
,
AV_LOG_ERROR
,
"Invalid NAL unit size (%d > %d).
\n
"
,
extract_length
,
length
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
buf
+=
nal_length_size
;
buf
+=
nal_length_size
;
...
...
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