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
41f283ec
Commit
41f283ec
authored
Sep 18, 2019
by
Gyan Doshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/utils: log corrupt packets
parent
ec4f7642
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
utils.c
libavformat/utils.c
+9
-6
No files found.
libavformat/utils.c
View file @
41f283ec
...
...
@@ -881,13 +881,16 @@ int ff_read_packet(AVFormatContext *s, AVPacket *pkt)
return
err
;
}
if
((
s
->
flags
&
AVFMT_FLAG_DISCARD_CORRUPT
)
&&
(
pkt
->
flags
&
AV_PKT_FLAG_CORRUPT
))
{
if
(
pkt
->
flags
&
AV_PKT_FLAG_CORRUPT
)
{
av_log
(
s
,
AV_LOG_WARNING
,
"Dropped corrupted packet (stream = %d)
\n
"
,
pkt
->
stream_index
);
av_packet_unref
(
pkt
);
continue
;
"Packet corrupt (stream = %d, dts = %s)"
,
pkt
->
stream_index
,
av_ts2str
(
pkt
->
dts
));
if
(
s
->
flags
&
AVFMT_FLAG_DISCARD_CORRUPT
)
{
av_log
(
s
,
AV_LOG_WARNING
,
", dropping it.
\n
"
);
av_packet_unref
(
pkt
);
continue
;
}
av_log
(
s
,
AV_LOG_WARNING
,
".
\n
"
);
}
av_assert0
(
pkt
->
stream_index
<
(
unsigned
)
s
->
nb_streams
&&
...
...
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