Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
24c96490
Commit
24c96490
authored
Dec 15, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used picture_NewFromFormat when appropriate.
parent
7d0e62b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
+4
-11
src/misc/filter_chain.c
src/misc/filter_chain.c
+1
-3
src/misc/image.c
src/misc/image.c
+1
-4
src/video_output/vout_subpictures.c
src/video_output/vout_subpictures.c
+2
-4
No files found.
src/misc/filter_chain.c
View file @
24c96490
...
...
@@ -504,9 +504,7 @@ static picture_t *VideoBufferNew( filter_t *p_filter )
{
const
video_format_t
*
p_fmt
=
&
p_filter
->
fmt_out
.
video
;
picture_t
*
p_picture
=
picture_New
(
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
picture_t
*
p_picture
=
picture_NewFromFormat
(
p_fmt
);
if
(
!
p_picture
)
msg_Err
(
p_filter
,
"Failed to allocate picture"
);
return
p_picture
;
...
...
src/misc/image.c
View file @
24c96490
...
...
@@ -616,10 +616,7 @@ vlc_fourcc_t image_Mime2Fourcc( const char *psz_mime )
static
picture_t
*
video_new_buffer
(
decoder_t
*
p_dec
)
{
p_dec
->
fmt_out
.
video
.
i_chroma
=
p_dec
->
fmt_out
.
i_codec
;
return
picture_New
(
p_dec
->
fmt_out
.
video
.
i_chroma
,
p_dec
->
fmt_out
.
video
.
i_width
,
p_dec
->
fmt_out
.
video
.
i_height
,
p_dec
->
fmt_out
.
video
.
i_aspect
);
return
picture_NewFromFormat
(
&
p_dec
->
fmt_out
.
video
);
}
static
void
video_del_buffer
(
decoder_t
*
p_dec
,
picture_t
*
p_pic
)
...
...
src/video_output/vout_subpictures.c
View file @
24c96490
...
...
@@ -822,8 +822,7 @@ subpicture_region_t *subpicture_region_New( const video_format_t *p_fmt )
if
(
p_fmt
->
i_chroma
==
VLC_CODEC_TEXT
)
return
p_region
;
p_region
->
p_picture
=
picture_New
(
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
p_region
->
p_picture
=
picture_NewFromFormat
(
p_fmt
);
if
(
!
p_region
->
p_picture
)
{
free
(
p_fmt
->
p_palette
);
...
...
@@ -1871,8 +1870,7 @@ static picture_t *spu_new_video_buffer( filter_t *p_filter )
const
video_format_t
*
p_fmt
=
&
p_filter
->
fmt_out
.
video
;
VLC_UNUSED
(
p_filter
);
return
picture_New
(
p_fmt
->
i_chroma
,
p_fmt
->
i_width
,
p_fmt
->
i_height
,
p_fmt
->
i_aspect
);
return
picture_NewFromFormat
(
p_fmt
);
}
static
void
spu_del_video_buffer
(
filter_t
*
p_filter
,
picture_t
*
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