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
a3b0403c
Commit
a3b0403c
authored
Mar 21, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* libmpeg2: handle invalid aspect as square one.
parent
54521e0a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+16
-6
No files found.
modules/codec/libmpeg2.c
View file @
a3b0403c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
* libmpeg2.c: mpeg2 video decoder module making use of libmpeg2.
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id
: libmpeg2.c,v 1.44 2004/02/25 18:22:54 fenrir Exp
$
* $Id$
*
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Authors: Gildas Bazin <gbazin@netcourrier.com>
* Christophe Massiot <massiot@via.ecp.fr>
* Christophe Massiot <massiot@via.ecp.fr>
...
@@ -294,12 +294,22 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
...
@@ -294,12 +294,22 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
else
else
{
{
/* Use the value provided in the MPEG sequence header */
/* Use the value provided in the MPEG sequence header */
if
(
p_sys
->
p_info
->
sequence
->
pixel_height
>
0
)
{
p_sys
->
i_aspect
=
p_sys
->
i_aspect
=
((
uint64_t
)
p_sys
->
p_info
->
sequence
->
display_width
)
*
((
uint64_t
)
p_sys
->
p_info
->
sequence
->
display_width
)
*
p_sys
->
p_info
->
sequence
->
pixel_width
*
VOUT_ASPECT_FACTOR
/
p_sys
->
p_info
->
sequence
->
pixel_width
*
VOUT_ASPECT_FACTOR
/
p_sys
->
p_info
->
sequence
->
display_height
/
p_sys
->
p_info
->
sequence
->
display_height
/
p_sys
->
p_info
->
sequence
->
pixel_height
;
p_sys
->
p_info
->
sequence
->
pixel_height
;
}
}
else
{
/* Handle invalid aspect as square */
p_sys
->
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_sys
->
p_info
->
sequence
->
width
/
p_sys
->
p_info
->
sequence
->
height
;
}
}
msg_Dbg
(
p_dec
,
"%dx%d, aspect %d, %u.%03u fps"
,
msg_Dbg
(
p_dec
,
"%dx%d, aspect %d, %u.%03u fps"
,
p_sys
->
p_info
->
sequence
->
width
,
p_sys
->
p_info
->
sequence
->
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