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
045ec346
Commit
045ec346
authored
Nov 07, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed support for crop parameters in picture_NewFrom*().
They were previously lost.
parent
9614138d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/misc/picture.c
src/misc/picture.c
+5
-0
No files found.
src/misc/picture.c
View file @
045ec346
...
...
@@ -196,6 +196,11 @@ picture_t *picture_NewFromResource( const video_format_t *p_fmt, const picture_r
video_format_Setup
(
&
fmt
,
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_sar_num
,
p_fmt
->
i_sar_den
);
if
(
p_fmt
->
i_x_offset
<
p_fmt
->
i_width
&&
p_fmt
->
i_y_offset
<
p_fmt
->
i_height
&&
p_fmt
->
i_visible_width
>
0
&&
p_fmt
->
i_x_offset
+
p_fmt
->
i_visible_width
<=
p_fmt
->
i_width
&&
p_fmt
->
i_visible_height
>
0
&&
p_fmt
->
i_y_offset
+
p_fmt
->
i_visible_height
<=
p_fmt
->
i_height
)
video_format_CopyCrop
(
&
fmt
,
p_fmt
);
/* */
picture_t
*
p_picture
=
calloc
(
1
,
sizeof
(
*
p_picture
)
);
...
...
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