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
f099946f
Commit
f099946f
authored
Oct 09, 2018
by
Marton Balint
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: log corrupted packets and frames
Signed-off-by:
Marton Balint
<
cus@passwd.hu
>
parent
19546cfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
ffmpeg.c
fftools/ffmpeg.c
+10
-6
No files found.
fftools/ffmpeg.c
View file @
f099946f
...
...
@@ -2110,10 +2110,12 @@ static void check_decode_result(InputStream *ist, int *got_output, int ret)
if
(
ret
<
0
&&
exit_on_error
)
exit_program
(
1
);
if
(
exit_on_error
&&
*
got_output
&&
ist
)
{
if
(
*
got_output
&&
ist
)
{
if
(
ist
->
decoded_frame
->
decode_error_flags
||
(
ist
->
decoded_frame
->
flags
&
AV_FRAME_FLAG_CORRUPT
))
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"%s: corrupt decoded frame in stream %d
\n
"
,
input_files
[
ist
->
file_index
]
->
ctx
->
url
,
ist
->
st
->
index
);
exit_program
(
1
);
av_log
(
NULL
,
exit_on_error
?
AV_LOG_FATAL
:
AV_LOG_WARNING
,
"%s: corrupt decoded frame in stream %d
\n
"
,
input_files
[
ist
->
file_index
]
->
ctx
->
url
,
ist
->
st
->
index
);
if
(
exit_on_error
)
exit_program
(
1
);
}
}
}
...
...
@@ -4350,9 +4352,11 @@ static int process_input(int file_index)
if
(
ist
->
discard
)
goto
discard_packet
;
if
(
exit_on_error
&&
(
pkt
.
flags
&
AV_PKT_FLAG_CORRUPT
))
{
av_log
(
NULL
,
AV_LOG_FATAL
,
"%s: corrupt input packet in stream %d
\n
"
,
is
->
url
,
pkt
.
stream_index
);
exit_program
(
1
);
if
(
pkt
.
flags
&
AV_PKT_FLAG_CORRUPT
)
{
av_log
(
NULL
,
exit_on_error
?
AV_LOG_FATAL
:
AV_LOG_WARNING
,
"%s: corrupt input packet in stream %d
\n
"
,
is
->
url
,
pkt
.
stream_index
);
if
(
exit_on_error
)
exit_program
(
1
);
}
if
(
debug_ts
)
{
...
...
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