I was recently looking at some vp8 sample decoder code when I came upon this.
for(y=0; y<img->d_h >> (plane?1:0); y++) {
int iLength = img->d_w >> (plane?1:0);
iFrameCursor += iLength;
if(fwrite(buf, 1, iLength, outfile)); //This semicolon
buf += img->stride[plane];
}
Any idea what the if statement means?
The semicolon here is the same as if you had said
{ }. It is just an empty statement.The following lines of code all do the same thing:
This is probably an error.