]> git.sesse.net Git - mlt/commit
riff.cc: Fail if lseek() fails
authorMikko Rapeli <mikko.rapeli@iki.fi>
Mon, 2 Jul 2012 18:44:08 +0000 (21:44 +0300)
committerMikko Rapeli <mikko.rapeli@iki.fi>
Tue, 24 Jul 2012 13:12:06 +0000 (15:12 +0200)
commit86784db6e762a91eb87e334e716e1cce44de7efa
tree307ec2926e91be22afd54e53817729dd3678fa31
parentf543211b932ae1d91508c42c430cb23bc290859f
riff.cc: Fail if lseek() fails

Fixes Coverity CID 709362: Argument cannot be negative (NEGATIVE_RETURNS)
Function "lseek(this->fd, 0LL, 0)" returns a negative number.
Assigning: signed variable "pos" = "lseek".
...
"pos" is passed to a parameter that cannot be negative.
548                fail_if( lseek( fd, pos, SEEK_SET ) == ( off_t ) - 1 );
src/modules/kino/riff.cc