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
ac456373
Commit
ac456373
authored
Aug 18, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/nutenc: write stream metadata.
parent
454e37ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
nutenc.c
libavformat/nutenc.c
+3
-0
No files found.
libavformat/nutenc.c
View file @
ac456373
...
...
@@ -462,6 +462,7 @@ static int write_globalinfo(NUTContext *nut, AVIOContext *bc){
static
int
write_streaminfo
(
NUTContext
*
nut
,
AVIOContext
*
bc
,
int
stream_id
){
AVFormatContext
*
s
=
nut
->
avf
;
AVStream
*
st
=
s
->
streams
[
stream_id
];
AVDictionaryEntry
*
t
=
NULL
;
AVIOContext
*
dyn_bc
;
uint8_t
*
dyn_buf
=
NULL
;
int
count
=
0
,
dyn_size
,
i
;
...
...
@@ -469,6 +470,8 @@ static int write_streaminfo(NUTContext *nut, AVIOContext *bc, int stream_id){
if
(
ret
<
0
)
return
ret
;
while
((
t
=
av_dict_get
(
st
->
metadata
,
""
,
t
,
AV_DICT_IGNORE_SUFFIX
)))
count
+=
add_info
(
dyn_bc
,
t
->
key
,
t
->
value
);
for
(
i
=
0
;
ff_nut_dispositions
[
i
].
flag
;
++
i
)
{
if
(
st
->
disposition
&
ff_nut_dispositions
[
i
].
flag
)
count
+=
add_info
(
dyn_bc
,
"Disposition"
,
ff_nut_dispositions
[
i
].
str
);
...
...
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