Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
5082f759
Commit
5082f759
authored
22 years ago
by
François Revol
Browse files
Options
Downloads
Patches
Plain Diff
prettier debug output
Originally committed as revision 1607 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
dee076fc
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/asf.c
+22
-0
22 additions, 0 deletions
libavformat/asf.c
with
22 additions
and
0 deletions
libavformat/asf.c
+
22
−
0
View file @
5082f759
...
@@ -659,14 +659,36 @@ static int asf_write_trailer(AVFormatContext *s)
...
@@ -659,14 +659,36 @@ static int asf_write_trailer(AVFormatContext *s)
//#define DEBUG
//#define DEBUG
#ifdef DEBUG
#ifdef DEBUG
#define PRINT_IF_GUID(g,cmp) \
if (!memcmp(g, &cmp, sizeof(GUID))) \
printf("(GUID: %s) ", #cmp)
static
void
print_guid
(
const
GUID
*
g
)
static
void
print_guid
(
const
GUID
*
g
)
{
{
int
i
;
int
i
;
PRINT_IF_GUID
(
g
,
asf_header
);
else
PRINT_IF_GUID
(
g
,
file_header
);
else
PRINT_IF_GUID
(
g
,
stream_header
);
else
PRINT_IF_GUID
(
g
,
audio_stream
);
else
PRINT_IF_GUID
(
g
,
audio_conceal_none
);
else
PRINT_IF_GUID
(
g
,
video_stream
);
else
PRINT_IF_GUID
(
g
,
video_conceal_none
);
else
PRINT_IF_GUID
(
g
,
comment_header
);
else
PRINT_IF_GUID
(
g
,
codec_comment_header
);
else
PRINT_IF_GUID
(
g
,
codec_comment1_header
);
else
PRINT_IF_GUID
(
g
,
data_header
);
else
PRINT_IF_GUID
(
g
,
index_guid
);
else
PRINT_IF_GUID
(
g
,
head1_guid
);
else
PRINT_IF_GUID
(
g
,
head2_guid
);
else
PRINT_IF_GUID
(
g
,
my_guid
);
else
printf
(
"(GUID: unknown) "
);
printf
(
"0x%08x, 0x%04x, 0x%04x, {"
,
g
->
v1
,
g
->
v2
,
g
->
v3
);
printf
(
"0x%08x, 0x%04x, 0x%04x, {"
,
g
->
v1
,
g
->
v2
,
g
->
v3
);
for
(
i
=
0
;
i
<
8
;
i
++
)
for
(
i
=
0
;
i
<
8
;
i
++
)
printf
(
" 0x%02x,"
,
g
->
v4
[
i
]);
printf
(
" 0x%02x,"
,
g
->
v4
[
i
]);
printf
(
"}
\n
"
);
printf
(
"}
\n
"
);
}
}
#undef PRINT_IF_GUID(g,cmp)
#endif
#endif
static
void
get_guid
(
ByteIOContext
*
s
,
GUID
*
g
)
static
void
get_guid
(
ByteIOContext
*
s
,
GUID
*
g
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment