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
864fdfa0
Commit
864fdfa0
authored
Feb 06, 2013
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
framecrcenc: print all side data elements, not just the first
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b2c44319
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
framecrcenc.c
libavformat/framecrcenc.c
+8
-4
No files found.
libavformat/framecrcenc.c
View file @
864fdfa0
...
...
@@ -34,11 +34,15 @@ static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
if
(
pkt
->
flags
!=
AV_PKT_FLAG_KEY
)
av_strlcatf
(
buf
,
sizeof
(
buf
),
", F=0x%0X"
,
pkt
->
flags
);
if
(
pkt
->
side_data_elems
)
{
uint32_t
side_data_crc
=
av_adler32_update
(
0
,
pkt
->
side_data
->
data
,
pkt
->
side_data
->
size
);
int
i
;
av_strlcatf
(
buf
,
sizeof
(
buf
),
", S=%d"
,
pkt
->
side_data_elems
);
av_strlcatf
(
buf
,
sizeof
(
buf
),
", %8d, 0x%08x"
,
pkt
->
side_data
->
size
,
side_data_crc
);
for
(
i
=
0
;
i
<
pkt
->
side_data_elems
;
i
++
)
{
uint32_t
side_data_crc
=
av_adler32_update
(
0
,
pkt
->
side_data
[
i
].
data
,
pkt
->
side_data
[
i
].
size
);
av_strlcatf
(
buf
,
sizeof
(
buf
),
", %8d, 0x%08x"
,
pkt
->
side_data
[
i
].
size
,
side_data_crc
);
}
}
av_strlcatf
(
buf
,
sizeof
(
buf
),
"
\n
"
);
avio_write
(
s
->
pb
,
buf
,
strlen
(
buf
));
...
...
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