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
2de88776
Commit
2de88776
authored
Sep 12, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asfdec: invert SAR
It appears this was wrong Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ddc9bc77
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
asfdec.c
libavformat/asfdec.c
+4
-4
No files found.
libavformat/asfdec.c
View file @
2de88776
...
...
@@ -776,12 +776,12 @@ static int asf_read_header(AVFormatContext *s)
if
(
!
st
->
codec
->
bit_rate
)
st
->
codec
->
bit_rate
=
asf
->
stream_bitrates
[
i
];
if
(
asf
->
dar
[
i
].
num
>
0
&&
asf
->
dar
[
i
].
den
>
0
){
av_reduce
(
&
st
->
sample_aspect_ratio
.
num
,
&
st
->
sample_aspect_ratio
.
den
,
av_reduce
(
&
st
->
sample_aspect_ratio
.
den
,
&
st
->
sample_aspect_ratio
.
num
,
asf
->
dar
[
i
].
num
,
asf
->
dar
[
i
].
den
,
INT_MAX
);
}
else
if
((
asf
->
dar
[
0
].
num
>
0
)
&&
(
asf
->
dar
[
0
].
den
>
0
)
&&
(
st
->
codec
->
codec_type
==
AVMEDIA_TYPE_VIDEO
))
// Use ASF container value if the stream doesn't AR set.
av_reduce
(
&
st
->
sample_aspect_ratio
.
num
,
&
st
->
sample_aspect_ratio
.
den
,
av_reduce
(
&
st
->
sample_aspect_ratio
.
den
,
&
st
->
sample_aspect_ratio
.
num
,
asf
->
dar
[
0
].
num
,
asf
->
dar
[
0
].
den
,
INT_MAX
);
//av_log(s, AV_LOG_INFO, "i=%d, st->codec->codec_type:%d, dar %d:%d sar=%d:%d\n", i, st->codec->codec_type, dar[i].num, dar[i].den, st->sample_aspect_ratio.num, st->sample_aspect_ratio.den);
...
...
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