avidec: Return correct error code from avi_sync() in case of IO error.

Found-by: Tanami, Ohad
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2011-10-26 23:14:35 +02:00
parent 7d7e3023d9
commit 742d218bf1

View File

@ -1001,6 +1001,8 @@ start_sync:
}
}
if(pb->error)
return pb->error;
return AVERROR_EOF;
}