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
e579d8b2
Commit
e579d8b2
authored
Jan 02, 2016
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: Dump the cpb side data information
parent
d005ccc6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
dump.c
libavformat/dump.c
+20
-0
No files found.
libavformat/dump.c
View file @
e579d8b2
...
...
@@ -318,6 +318,22 @@ static void dump_audioservicetype(void *ctx, AVPacketSideData *sd)
}
}
static
void
dump_cpb
(
void
*
ctx
,
AVPacketSideData
*
sd
)
{
AVCPBProperties
*
cpb
=
(
AVCPBProperties
*
)
sd
->
data
;
if
(
sd
->
size
<
sizeof
(
*
cpb
))
{
av_log
(
ctx
,
AV_LOG_INFO
,
"invalid data"
);
return
;
}
av_log
(
ctx
,
AV_LOG_INFO
,
"bitrate max/min/avg: %d/%d/%d buffer size: %d vbv_delay: %"
PRId64
,
cpb
->
max_bitrate
,
cpb
->
min_bitrate
,
cpb
->
avg_bitrate
,
cpb
->
buffer_size
,
cpb
->
vbv_delay
);
}
static
void
dump_sidedata
(
void
*
ctx
,
AVStream
*
st
,
const
char
*
indent
)
{
int
i
;
...
...
@@ -362,6 +378,10 @@ static void dump_sidedata(void *ctx, AVStream *st, const char *indent)
case
AV_PKT_DATA_QUALITY_FACTOR
:
av_log
(
ctx
,
AV_LOG_INFO
,
"quality factor: %d"
,
*
(
int
*
)
sd
.
data
);
break
;
case
AV_PKT_DATA_CPB_PROPERTIES
:
av_log
(
ctx
,
AV_LOG_INFO
,
"cpb: "
);
dump_cpb
(
ctx
,
&
sd
);
break
;
default:
av_log
(
ctx
,
AV_LOG_WARNING
,
"unknown side data type %d (%d bytes)"
,
sd
.
type
,
sd
.
size
);
...
...
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