aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-22 18:20:32 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-12-22 18:20:32 +0100
commitaa63facf2c4140acef2ba6e7f1b8012eec5536bf (patch)
tree5888552a615dddc4f4b35836f52a1c33241bce11
parent9ffaa58ba47f5211cce25483e7408dbaf9a6cbfc (diff)
downloaddabmod-aa63facf2c4140acef2ba6e7f1b8012eec5536bf.tar.gz
dabmod-aa63facf2c4140acef2ba6e7f1b8012eec5536bf.tar.bz2
dabmod-aa63facf2c4140acef2ba6e7f1b8012eec5536bf.zip
Reindent InputFileReader::GetNextFrame()
-rw-r--r--src/InputFileReader.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/InputFileReader.cpp b/src/InputFileReader.cpp
index 4a7e050..205fbfa 100644
--- a/src/InputFileReader.cpp
+++ b/src/InputFileReader.cpp
@@ -284,17 +284,17 @@ int InputFileReader::GetNextFrame(void* buffer)
if (read_bytes != frameSize) {
// A short read of a frame (i.e. reading an incomplete frame)
// is not tolerated. Input files must not contain incomplete frames
- if (read_bytes != 0){
- fprintf(stderr,
- "Unable to read a complete frame of %u data bytes from input file!\n",
- frameSize);
-
- perror(filename_.c_str());
- logger_.level(error) << "Unable to read from input file!";
- return -1;
+ if (read_bytes != 0) {
+ fprintf(stderr,
+ "Unable to read a complete frame of %u data bytes from input file!\n",
+ frameSize);
+
+ perror(filename_.c_str());
+ logger_.level(error) << "Unable to read from input file!";
+ return -1;
}
else {
- return 0;
+ return 0;
}
}