Take the "size" argument into account in bufgetdata(), using the guard buffer if...
commit3529f9ed5d591739e08d97a6858ebf5db05b991d
authornico <nico@9862a28c-4e93-4879-ac26-10afcf840a8f>
Wed, 4 Jul 2007 17:09:21 +0000 (4 17:09 +0000)
committernico <nico@9862a28c-4e93-4879-ac26-10afcf840a8f>
Wed, 4 Jul 2007 17:09:21 +0000 (4 17:09 +0000)
tree5dec569157fc88f220b1ce9741cf57faca3858be
parent6eed30732104fb9071a244d2f93b83426c8afd5f
Take the "size" argument into account in bufgetdata(), using the guard buffer if needed to ensure enough data is provided. The main() now reads files in chunks of the size of the guard buffer, but without using the guard buffer. This hopefully simulates codec behaviour accurately.

git-svn-id: svn://jdgordon.mine.nu/mob@29 9862a28c-4e93-4879-ac26-10afcf840a8f
buffering.c