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
1a34103f
Commit
1a34103f
authored
Jan 05, 2013
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmf.c: Use LIBAVFORMAT_IDENT when writing Yamaha SMAF version information.
parent
39d18754
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
mmf.c
libavformat/mmf.c
+4
-1
version.h
libavformat/version.h
+1
-1
mmf
tests/ref/lavf/mmf
+2
-2
No files found.
libavformat/mmf.c
View file @
1a34103f
...
...
@@ -68,6 +68,9 @@ static int mmf_write_header(AVFormatContext *s)
AVIOContext
*
pb
=
s
->
pb
;
int64_t
pos
;
int
rate
;
const
char
*
version
=
s
->
streams
[
0
]
->
codec
->
flags
&
CODEC_FLAG_BITEXACT
?
"VN:Lavf,"
:
"VN:"
LIBAVFORMAT_IDENT
","
;
rate
=
mmf_rate_code
(
s
->
streams
[
0
]
->
codec
->
sample_rate
);
if
(
rate
<
0
)
{
...
...
@@ -85,7 +88,7 @@ static int mmf_write_header(AVFormatContext *s)
avio_w8
(
pb
,
0
);
/* counts */
end_tag_be
(
pb
,
pos
);
pos
=
ff_start_tag
(
pb
,
"OPDA"
);
avio_write
(
pb
,
"VN:libavcodec,"
,
sizeof
(
"VN:libavcodec,"
)
-
1
);
/* metadata ("ST:songtitle,VN:version,...") */
avio_write
(
pb
,
version
,
strlen
(
version
)
);
/* metadata ("ST:songtitle,VN:version,...") */
end_tag_be
(
pb
,
pos
);
avio_write
(
pb
,
"ATR
\x00
"
,
4
);
...
...
libavformat/version.h
View file @
1a34103f
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 54
#define LIBAVFORMAT_VERSION_MINOR 59
#define LIBAVFORMAT_VERSION_MICRO 10
4
#define LIBAVFORMAT_VERSION_MICRO 10
5
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
tests/ref/lavf/mmf
View file @
1a34103f
786815c553a0bd2cb066f27a911f1b1f
*./tests/data/lavf/lavf.mmf
2261
7
./tests/data/lavf/lavf.mmf
b165af6f2e5c6c1de733e9d3848bcebb
*./tests/data/lavf/lavf.mmf
2261
1
./tests/data/lavf/lavf.mmf
./tests/data/lavf/lavf.mmf CRC=0x03633476
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