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
e84eeca5
Commit
e84eeca5
authored
Sep 29, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/movenc: Put correct display aspect ratio in ARES atom.
parent
fcce25ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
movenc.c
libavformat/movenc.c
+5
-1
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/movenc.c
View file @
e84eeca5
...
...
@@ -1071,6 +1071,7 @@ static int mov_write_avid_tag(AVIOContext *pb, MOVTrack *track)
int
i
;
int
interlaced
;
int
cid
;
int
display_width
=
track
->
par
->
width
;
if
(
track
->
vos_data
&&
track
->
vos_len
>
0x29
)
{
if
(
ff_dnxhd_parse_header_prefix
(
track
->
vos_data
)
!=
0
)
{
...
...
@@ -1122,7 +1123,10 @@ static int mov_write_avid_tag(AVIOContext *pb, MOVTrack *track)
ffio_wfourcc
(
pb
,
"ARES"
);
ffio_wfourcc
(
pb
,
"0001"
);
avio_wb32
(
pb
,
cid
);
/* dnxhd cid, some id ? */
avio_wb32
(
pb
,
track
->
par
->
width
);
if
(
track
->
par
->
sample_aspect_ratio
.
num
>
0
&&
track
->
par
->
sample_aspect_ratio
.
den
>
0
)
display_width
=
display_width
*
track
->
par
->
sample_aspect_ratio
.
num
/
track
->
par
->
sample_aspect_ratio
.
den
;
avio_wb32
(
pb
,
display_width
);
/* values below are based on samples created with quicktime and avid codecs */
if
(
interlaced
)
{
avio_wb32
(
pb
,
track
->
par
->
height
/
2
);
...
...
libavformat/version.h
View file @
e84eeca5
...
...
@@ -33,7 +33,7 @@
// Also please add any ticket numbers that you believe might be affected here
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 51
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_MICRO 10
2
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
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