Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
304089ac
Commit
304089ac
authored
Aug 12, 2014
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mxf: Add UID print helpers
And use it to print non-parsed ULs.
parent
11db644a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
mxf.h
libavformat/mxf.h
+12
-0
mxfdec.c
libavformat/mxfdec.c
+3
-0
No files found.
libavformat/mxf.h
View file @
304089ac
...
@@ -79,6 +79,18 @@ extern const MXFCodecUL ff_mxf_pixel_format_uls[];
...
@@ -79,6 +79,18 @@ extern const MXFCodecUL ff_mxf_pixel_format_uls[];
int
ff_mxf_decode_pixel_layout
(
const
char
pixel_layout
[
16
],
enum
AVPixelFormat
*
pix_fmt
);
int
ff_mxf_decode_pixel_layout
(
const
char
pixel_layout
[
16
],
enum
AVPixelFormat
*
pix_fmt
);
const
MXFSamplesPerFrame
*
ff_mxf_get_samples_per_frame
(
AVFormatContext
*
s
,
AVRational
time_base
);
const
MXFSamplesPerFrame
*
ff_mxf_get_samples_per_frame
(
AVFormatContext
*
s
,
AVRational
time_base
);
#define PRIxUID \
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x." \
"%02x.%02x.%02x.%02x"
#define UID_ARG(x) \
(x)[0], (x)[1], (x)[2], (x)[3], \
(x)[4], (x)[5], (x)[6], (x)[7], \
(x)[8], (x)[9], (x)[10], (x)[11], \
(x)[12], (x)[13], (x)[14], (x)[15] \
#ifdef DEBUG
#ifdef DEBUG
#define PRINT_KEY(pc, s, x) \
#define PRINT_KEY(pc, s, x) \
av_log(pc, AV_LOG_VERBOSE, \
av_log(pc, AV_LOG_VERBOSE, \
...
...
libavformat/mxfdec.c
View file @
304089ac
...
@@ -2185,6 +2185,9 @@ static int mxf_read_header(AVFormatContext *s)
...
@@ -2185,6 +2185,9 @@ static int mxf_read_header(AVFormatContext *s)
return
res
;
return
res
;
}
}
break
;
break
;
}
else
{
av_log
(
s
,
AV_LOG_VERBOSE
,
"Dark key "
PRIxUID
"
\n
"
,
UID_ARG
(
klv
.
key
));
}
}
}
}
if
(
!
metadata
->
read
)
if
(
!
metadata
->
read
)
...
...
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