Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
1cd9bbce
Commit
1cd9bbce
authored
Jul 04, 2003
by
Eric Petit
Browse files
logo.c : gcc != 3 compile fix
parent
4be7e66d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_filter/logo.c
View file @
1cd9bbce
...
...
@@ -2,7 +2,7 @@
* logo.c : logo video plugin for vlc
*****************************************************************************
* Copyright (C) 2000, 2001, 2002, 2003 VideoLAN
* $Id: logo.c,v 1.
1
2003/07/0
3
19:
25:51 garf
Exp $
* $Id: logo.c,v 1.
2
2003/07/0
4
19:
00:43 titer
Exp $
*
* Authors: Simon Latapie <garf@videolan.org>
*
...
...
@@ -132,21 +132,25 @@ static int Init( vout_thread_t *p_vout )
int
i_index
;
picture_t
*
p_pic
;
char
*
filename
;
/* read png file */
filename
=
config_GetPsz
(
p_vout
,
"logo_file"
);
FILE
*
fp
=
fopen
(
filename
,
"rb"
);
png_structp
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
NULL
,
NULL
,
NULL
);
png_infop
info_ptr
=
png_create_info_struct
(
png_ptr
);
FILE
*
fp
;
int
color_type
;
int
interlace_type
;
int
compression_type
;
int
filter_type
;
png_structp
png_ptr
;
png_bytep
*
row_pointers
;
png_infop
info_ptr
;
unsigned
int
i
;
unsigned
int
j
;
int
temp
;
int
i_size
;
/* read png file */
filename
=
config_GetPsz
(
p_vout
,
"logo_file"
);
fp
=
fopen
(
filename
,
"rb"
);
png_ptr
=
png_create_read_struct
(
PNG_LIBPNG_VER_STRING
,
NULL
,
NULL
,
NULL
);
info_ptr
=
png_create_info_struct
(
png_ptr
);
if
(
fp
==
NULL
)
{
p_vout
->
p_sys
->
error
=
1
;
...
...
Write
Preview
Supports
Markdown
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