Fixed case when cfg->frames is zero
Fixed case when cfg->frames is zero

ultravideo/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,ultravideo/kvazaar,lu-zero/kvazaar,lu-zero/kvazaar,lu-zero/kvazaar,ultravideo/kvazaar