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
98ea2ba6
Commit
98ea2ba6
authored
Aug 19, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation with old ffmpeg.
parent
a8275171
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
modules/video_filter/imgresample.c
modules/video_filter/imgresample.c
+5
-8
No files found.
modules/video_filter/imgresample.c
View file @
98ea2ba6
...
...
@@ -87,18 +87,15 @@ struct filter_sys_t
int
OpenFilter
(
vlc_object_t
*
p_this
)
{
filter_t
*
p_filter
=
(
filter_t
*
)
p_this
;
int
i_ffmpeg_chroma
[
2
]
,
i_vlc_chroma
[
2
],
i
;
int
i_ffmpeg_chroma
[
2
];
/*
* Check the source chroma first, then the destination chroma
*/
i_vlc_chroma
[
0
]
=
p_filter
->
fmt_in
.
video
.
i_chroma
;
i_vlc_chroma
[
1
]
=
p_filter
->
fmt_out
.
video
.
i_chroma
;
for
(
i
=
0
;
i
<
2
;
i
++
)
{
i_ffmpeg_chroma
[
i
]
=
GetFfmpegChroma
(
i_vlc_chroma
[
i
]
);
if
(
i_ffmpeg_chroma
[
i
]
<
0
)
return
VLC_EGENERIC
;
}
if
(
GetFfmpegChroma
(
&
i_ffmpeg_chroma
[
0
],
p_filter
->
fmt_in
.
video
)
==
VLC_EGENERIC
)
return
VLC_EGENERIC
;
if
(
GetFfmpegChroma
(
&
i_ffmpeg_chroma
[
1
],
p_filter
->
fmt_out
.
video
)
==
VLC_EGENERIC
)
return
VLC_EGENERIC
;
p_filter
->
pf_video_filter
=
Conversion_Filter
;
...
...
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