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
fd6296e4
Commit
fd6296e4
authored
Sep 13, 2015
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/flvdec: Print last packet size at trace level
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
6bed88ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
flvdec.c
libavformat/flvdec.c
+3
-2
No files found.
libavformat/flvdec.c
View file @
fd6296e4
...
...
@@ -801,15 +801,16 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
int
av_uninit
(
channels
);
int
av_uninit
(
sample_rate
);
AVStream
*
st
=
NULL
;
int
last
=
-
1
;
/* pkt size is repeated at end. skip it */
for
(;;
avio_skip
(
s
->
pb
,
4
))
{
for
(;;
last
=
avio_rb32
(
s
->
pb
))
{
pos
=
avio_tell
(
s
->
pb
);
type
=
(
avio_r8
(
s
->
pb
)
&
0x1F
);
size
=
avio_rb24
(
s
->
pb
);
dts
=
avio_rb24
(
s
->
pb
);
dts
|=
avio_r8
(
s
->
pb
)
<<
24
;
av_log
(
s
,
AV_LOG_TRACE
,
"type:%d, size:%d,
dts:%"
PRId64
" pos:%"
PRId64
"
\n
"
,
type
,
size
,
dts
,
avio_tell
(
s
->
pb
));
av_log
(
s
,
AV_LOG_TRACE
,
"type:%d, size:%d,
last:%d, dts:%"
PRId64
" pos:%"
PRId64
"
\n
"
,
type
,
size
,
last
,
dts
,
avio_tell
(
s
->
pb
));
if
(
avio_feof
(
s
->
pb
))
return
AVERROR_EOF
;
avio_skip
(
s
->
pb
,
3
);
/* stream id, always 0 */
...
...
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