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
2355b745
Commit
2355b745
authored
Mar 02, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/mov: Set display aspect ratio for avid dv.
Fixes ticket #5271.
parent
c3bb6166
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
mov.c
libavformat/mov.c
+19
-0
version.h
libavformat/version.h
+1
-1
No files found.
libavformat/mov.c
View file @
2355b745
...
...
@@ -1461,6 +1461,25 @@ static int mov_read_ares(MOVContext *c, AVIOContext *pb, MOVAtom atom)
if
(
avio_rb16
(
pb
)
==
0xd4d
)
codec
->
width
=
1440
;
return
0
;
}
else
if
(
codec
->
codec_tag
==
MKTAG
(
'A'
,
'V'
,
'd'
,
'1'
)
&&
atom
.
size
>=
24
)
{
int
num
,
den
;
avio_skip
(
pb
,
12
);
num
=
avio_rb32
(
pb
);
den
=
avio_rb32
(
pb
);
if
(
num
<=
0
||
den
<=
0
)
return
0
;
switch
(
avio_rb32
(
pb
))
{
case
2
:
if
(
den
>=
INT_MAX
/
2
)
return
0
;
den
*=
2
;
case
1
:
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
display_aspect_ratio
.
num
=
num
;
c
->
fc
->
streams
[
c
->
fc
->
nb_streams
-
1
]
->
display_aspect_ratio
.
den
=
den
;
default:
return
0
;
}
}
}
...
...
libavformat/version.h
View file @
2355b745
...
...
@@ -31,7 +31,7 @@
#define LIBAVFORMAT_VERSION_MAJOR 57
#define LIBAVFORMAT_VERSION_MINOR 27
#define LIBAVFORMAT_VERSION_MICRO 10
0
#define LIBAVFORMAT_VERSION_MICRO 10
1
#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