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
405abdba
Commit
405abdba
authored
Jan 12, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mpjpegdec: Do not call av_log() while probing.
parent
7c0b84d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
mpjpegdec.c
libavformat/mpjpegdec.c
+3
-0
No files found.
libavformat/mpjpegdec.c
View file @
405abdba
...
...
@@ -198,6 +198,7 @@ static int parse_multipart_header(AVIOContext *pb,
}
if
(
!
av_strstart
(
line
,
expected_boundary
,
NULL
))
{
if
(
log_ctx
)
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Expected boundary '%s' not found, instead found a line of %zu bytes
\n
"
,
...
...
@@ -228,6 +229,7 @@ static int parse_multipart_header(AVIOContext *pb,
if
(
!
av_strcasecmp
(
tag
,
"Content-type"
))
{
if
(
av_strcasecmp
(
value
,
"image/jpeg"
))
{
if
(
log_ctx
)
av_log
(
log_ctx
,
AV_LOG_ERROR
,
"Unexpected %s : %s
\n
"
,
tag
,
value
);
...
...
@@ -237,6 +239,7 @@ static int parse_multipart_header(AVIOContext *pb,
}
else
if
(
!
av_strcasecmp
(
tag
,
"Content-Length"
))
{
*
size
=
parse_content_length
(
value
);
if
(
*
size
<
0
)
if
(
log_ctx
)
av_log
(
log_ctx
,
AV_LOG_WARNING
,
"Invalid Content-Length value : %s
\n
"
,
value
);
...
...
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