mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
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:
parent
2b9712ca2d
commit
3ee955a2f2
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue