Make get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF as
commit66982b2e20ae8b0690e4dfcbf1a236540ff1c707
authorreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 2 Oct 2009 06:36:39 +0000 (2 06:36 +0000)
committerreimar <reimar@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Fri, 2 Oct 2009 06:36:39 +0000 (2 06:36 +0000)
tree93dc6147c88413e55a8ad057125544e4a4d1a962
parentbb9f747af7b42637a242f7721d13f39c73d01cd6
Make get_buffer and get_partial_buffer return url_ferror or AVERROR_EOF as
appropriate if it couldn't read any data at all.
This should make handling of EOF and error simpler or make it work right without
extra code in a few place (e.g. raw demuxer).

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20135 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
libavformat/aviobuf.c