Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
6b55ee51
Commit
6b55ee51
authored
Oct 07, 2009
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: initialise p_dec.fmt_in if it's missing, not fmt_out
parent
17630b54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-5
No files found.
modules/codec/avcodec/video.c
View file @
6b55ee51
...
@@ -641,18 +641,18 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
...
@@ -641,18 +641,18 @@ picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
if
(
!
p_dec
->
fmt_in
.
video
.
i_aspect
)
if
(
!
p_dec
->
fmt_in
.
video
.
i_aspect
)
{
{
/* Fetch again the aspect ratio in case it changed */
/* Fetch again the aspect ratio in case it changed */
p_dec
->
fmt_
out
.
video
.
i_aspect
=
p_dec
->
fmt_
in
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
VOUT_ASPECT_FACTOR
*
(
av_q2d
(
p_sys
->
p_context
->
sample_aspect_ratio
)
*
(
av_q2d
(
p_sys
->
p_context
->
sample_aspect_ratio
)
*
p_sys
->
p_context
->
width
/
p_sys
->
p_context
->
height
);
*
p_sys
->
p_context
->
width
/
p_sys
->
p_context
->
height
);
p_dec
->
fmt_
out
.
video
.
i_sar_num
p_dec
->
fmt_
in
.
video
.
i_sar_num
=
p_sys
->
p_context
->
sample_aspect_ratio
.
num
;
=
p_sys
->
p_context
->
sample_aspect_ratio
.
num
;
p_dec
->
fmt_
out
.
video
.
i_sar_den
p_dec
->
fmt_
in
.
video
.
i_sar_den
=
p_sys
->
p_context
->
sample_aspect_ratio
.
den
;
=
p_sys
->
p_context
->
sample_aspect_ratio
.
den
;
if
(
p_dec
->
fmt_
out
.
video
.
i_aspect
==
0
)
if
(
p_dec
->
fmt_
in
.
video
.
i_aspect
==
0
)
{
{
p_dec
->
fmt_
out
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
p_dec
->
fmt_
in
.
video
.
i_aspect
=
VOUT_ASPECT_FACTOR
*
p_sys
->
p_context
->
width
/
p_sys
->
p_context
->
height
;
*
p_sys
->
p_context
->
width
/
p_sys
->
p_context
->
height
;
}
}
}
}
...
...
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