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
fa6218de
Commit
fa6218de
authored
Aug 31, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: pass aligned picture dimensions to video output
This enables direct rendering for H.264 software decoding.
parent
1b2711de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+12
-9
No files found.
modules/codec/avcodec/video.c
View file @
fa6218de
...
...
@@ -126,20 +126,23 @@ static inline picture_t *ffmpeg_NewPictBuf( decoder_t *p_dec,
AVCodecContext
*
p_context
)
{
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
int
aligns
[
AV_NUM_DATA_POINTERS
];
int
width
=
p_context
->
coded_width
;
int
height
=
p_context
->
coded_height
;
avcodec_align_dimensions2
(
p_context
,
&
width
,
&
height
,
aligns
);
if
(
width
==
0
||
height
==
0
)
return
NULL
;
/* invalid display size */
p_dec
->
fmt_out
.
video
.
i_width
=
width
;
p_dec
->
fmt_out
.
video
.
i_height
=
height
;
if
(
p_context
->
coded_width
!=
p_context
->
width
||
p_context
->
coded_height
!=
p_context
->
height
)
if
(
width
!=
p_context
->
width
||
height
!=
p_context
->
height
)
{
p_dec
->
fmt_out
.
video
.
i_visible_width
=
p_context
->
width
;
p_dec
->
fmt_out
.
video
.
i_visible_height
=
p_context
->
height
;
}
p_dec
->
fmt_out
.
video
.
i_width
=
p_context
->
coded_width
;
p_dec
->
fmt_out
.
video
.
i_height
=
p_context
->
coded_height
;
if
(
!
p_context
->
width
||
!
p_context
->
height
)
{
return
NULL
;
/* invalid display size */
}
if
(
!
p_sys
->
p_va
&&
GetVlcChroma
(
&
p_dec
->
fmt_out
.
video
,
p_context
->
pix_fmt
)
)
{
...
...
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