Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
7fd8d8f0
Commit
7fd8d8f0
authored
Jul 25, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing aspect ratio (from a h264 revision).
Correctly detect unsupported AR.
parent
5d71c531
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/packetizer/h264.c
modules/packetizer/h264.c
+10
-4
No files found.
modules/packetizer/h264.c
View file @
7fd8d8f0
...
...
@@ -765,26 +765,32 @@ static void PutSPS( decoder_t *p_dec, block_t *p_frag )
i_tmp
=
bs_read
(
&
s
,
1
);
if
(
i_tmp
)
{
static
const
struct
{
int
w
,
h
;
}
sar
[
1
4
]
=
static
const
struct
{
int
w
,
h
;
}
sar
[
1
7
]
=
{
{
0
,
0
},
{
1
,
1
},
{
12
,
11
},
{
10
,
11
},
{
16
,
11
},
{
40
,
33
},
{
24
,
11
},
{
20
,
11
},
{
32
,
11
},
{
80
,
33
},
{
18
,
11
},
{
15
,
11
},
{
64
,
33
},
{
160
,
99
},
{
64
,
33
},
{
160
,
99
},
{
4
,
3
},
{
3
,
2
},
{
2
,
1
},
};
int
i_sar
=
bs_read
(
&
s
,
8
);
int
w
,
h
;
if
(
i_sar
<
1
4
)
if
(
i_sar
<
1
7
)
{
w
=
sar
[
i_sar
].
w
;
h
=
sar
[
i_sar
].
h
;
}
else
else
if
(
i_sar
==
255
)
{
w
=
bs_read
(
&
s
,
16
);
h
=
bs_read
(
&
s
,
16
);
}
else
{
w
=
0
;
h
=
0
;
}
if
(
h
!=
0
)
p_dec
->
fmt_out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
w
/
h
*
p_dec
->
fmt_out
.
video
.
i_width
/
...
...
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