]> git.alsa-project.org Git - alsa-tools.git/commitdiff
Added ferror test
authorJaroslav Kysela <perex@perex.cz>
Mon, 25 Jun 2001 07:30:49 +0000 (07:30 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 25 Jun 2001 07:30:49 +0000 (07:30 +0000)
ac3dec/ac3dec.c

index b49ad4307addbf27965b80ca36985c8618841373..d813e471ad4ad7f5d3cd6c24823e0d5840323f54 100644 (file)
@@ -70,6 +70,8 @@ ssize_t fill_buffer(uint_8 **start,uint_8 **end)
 
        if (feof(in_file))
                return EOF;
+       if (ferror(in_file))
+               return EOF;
        if(bytes_read < CHUNK_SIZE)
                return EOF;