tests: y4mreader: use int for fgetc

Assigning the return value of fgetc to char truncates its value.

It will not be possible to distinguish between EOF and a valid
character.
This commit is contained in:
Víctor Manuel Jáquez Leal 2018-01-10 16:59:56 +01:00
parent 2b9712ca2d
commit 3ee955a2f2

View file

@ -55,9 +55,8 @@ parse_int (const gchar * str, guint * out_value_ptr)
static gboolean
parse_header (Y4MReader * file)
{
gint i, j;
gint i, j, b;
guint8 header[BUFSIZ];
gint8 b;
size_t s;
gchar *str;
@ -185,9 +184,8 @@ y4m_reader_close (Y4MReader * file)
static gboolean
skip_frame_header (Y4MReader * file)
{
gint i;
gint i, b;
guint8 header[BUFSIZ];
gint8 b;
size_t s;
memset (header, 0, BUFSIZ);